Skip to content

action-pr-size-checker

Actions
Verify pull request size without sepecified file names
v0.0.8
Latest
Star (7)

Tags

 (1)

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

action-pr-size-checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Verify pull request size without sepecified file names
v0.0.8
Latest

Tags

 (1)

action-pr-size-checker is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.