Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
chore: add PR size labeler (#198)
Browse files Browse the repository at this point in the history
* chore: add PR size labeler

* chore: update labeler yml syntax

* empty commit fix mainline protection

Co-authored-by: zheyanyu <[email protected]>
Co-authored-by: Tim Nguyen <[email protected]>
  • Loading branch information
3 people authored Feb 10, 2021
1 parent cf9ea7f commit 57c3b38
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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'
message_if_xl: >
'This PR exceeds the recommended size of 1000 lines.
Please make sure you are NOT addressing multiple issues with one PR.
Note this PR might be rejected due to its size.’

0 comments on commit 57c3b38

Please sign in to comment.