Skip to content
check-circle

GitHub Action

action-pr-size-checker

v0.0.8 Latest version

action-pr-size-checker

check-circle

action-pr-size-checker

Verify pull request size without sepecified file names

Installation

Copy and paste the following snippet into your .yml file.

              

- name: action-pr-size-checker

uses: budougumi0617/[email protected]

Learn more about this action in budougumi0617/action-pr-size-checker

Choose a version

action-pr-size-checker

release GitHub release (latest SemVer)

Verify pull request size without specified files by file name.

Input

inputs:
  github_token:
    description: 'GITHUB_TOKEN.'
    required: true
    default: ${{ github.token }}
  max_added_count:
    description: 'allow max pr size.'
    required: true
    default: '500'
  filter_pattern:
    # https://github.com/google/re2/wiki/Syntax
    description: 'ignore file name by the regular expression syntax accepted by RE2'
    required: false

Usage

name: check-pr-size
on: [pull_request]
jobs:
  linter_name:
    name: runner / check-pr-size
    runs-on: ubuntu-latest
    steps:
      - uses: budougumi0617/action-pr-size-checker@v0
        with:
          github_token: ${{ secrets.github_token }}
          max_added_count: 300
          filter_pattern: "go.mod|go.sum|.*_test.go|.*.md|.*.golden|.*.yml"

Development

Release

You can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch). Pushing tag manually by yourself also work.

This action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3. ref: https://help.github.com/en/articles/about-actions#versioning-your-action