git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/cobra/.github/workflows/size-labeler.yml (about) 1 # Reference: https://github.com/CodelyTV/pr-size-labeler 2 3 name: size-labeler 4 5 on: [pull_request_target] 6 7 permissions: 8 contents: read 9 10 jobs: 11 size-labeler: 12 permissions: 13 pull-requests: write # for codelytv/pr-size-labeler to add labels & comment on PRs 14 runs-on: ubuntu-latest 15 name: Label the PR size 16 steps: 17 - uses: codelytv/pr-size-labeler@v1.8.1 18 with: 19 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 20 xs_label: 'size/XS' 21 xs_max_size: '10' 22 s_label: 'size/S' 23 s_max_size: '24' 24 m_label: 'size/M' 25 m_max_size: '99' 26 l_label: 'size/L' 27 l_max_size: '200' 28 xl_label: 'size/XL' 29 fail_if_xl: 'false' 30 message_if_xl: > 31 'This PR exceeds the recommended size of 200 lines. 32 Please make sure you are NOT addressing multiple issues with one PR. 33 Note this PR might be rejected due to its size.’