🏷 Visualize and optionally limit the size of your Pull Requests
Find a file
2020-03-10 08:47:15 +01:00
.github/workflows Comment on failing builds 2020-03-10 08:47:15 +01:00
src Use arithmetic operators built in Bash (#6) 2020-03-08 20:41:17 +01:00
action.yml docs: add branding icon/color & version badge (#1) 2020-03-02 08:59:03 +01:00
Dockerfile Use arithmetic operators built in Bash (#6) 2020-03-08 20:41:17 +01:00
entrypoint.sh Remove old size labels 2020-03-04 09:49:34 +01:00
LICENSE Use MIT license 2020-03-03 10:00:17 +01:00
README.md Use default values on readme 2020-03-04 14:26:11 +01:00

🏷 Pull Request size labeler

codely.tv CodelyTV Courses GitHub Action version

Visualize and optionally limit the size of your Pull Requests

🚀 Usage

Create a file named labeler.yml inside the .github/workflows directory and paste:

name: labeler

on: [pull_request]

jobs:
  labeler:
    runs-on: ubuntu-latest
    name: Label the PR size
    steps:
      - uses: codelytv/pr-size-labeler@v1
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          xs_max_size: '10'
          s_max_size: '100'
          m_max_size: '500'
          l_max_size: '1000'
          fail_if_xl: 'false'

If you want, you can customize all *_max_size with the size that fits in your project.

Setting fail_if_xl to 'true' will make fail all pull requests bigger than l_max_size.

⚖️ License

MIT