Skip to content

Commit

Permalink
add labeler github action
Browse files Browse the repository at this point in the history
  • Loading branch information
quillcraftsman committed Sep 7, 2024
1 parent e7325d3 commit e29d8c7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: labeler

on: [pull_request]

jobs:
labeler:
permissions:
pull-requests: write
contents: read
issues: write
runs-on: ubuntu-latest
name: Label the PR size
steps:
- uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/xs'
xs_max_size: '10'
s_label: 'size/s'
s_max_size: '200'
m_label: 'size/m'
m_max_size: '500'
l_label: 'size/l'
l_max_size: '1000'
xl_label: 'size/xl'
fail_if_xl: 'true'
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.
github_api_url: 'https://api.github.com'
files_to_ignore: ''

Check failure on line 32 in .github/workflows/labeler.yml

View workflow job for this annotation

GitHub Actions / build

32:30 [new-line-at-end-of-file] no new line character at the end of file

0 comments on commit e29d8c7

Please sign in to comment.