mirror of
https://github.com/posquit0/Awesome-CV.git
synced 2024-11-21 13:48:29 +00:00
Add labeler action
This commit is contained in:
parent
d375504c37
commit
f49d0adf7c
2 changed files with 34 additions and 0 deletions
0
.github/labeler.yaml
vendored
Normal file
0
.github/labeler.yaml
vendored
Normal file
34
.github/workflows/pull-request-labeler.yaml
vendored
Normal file
34
.github/workflows/pull-request-labeler.yaml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Label Pull Requests
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
label-pr:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Add Labels for PR
|
||||
uses: actions/labeler@v3
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
configuration-path: .github/labeler.yaml
|
||||
sync-labels: true
|
||||
|
||||
- name: Add PR Size Labels for PR
|
||||
uses: codelytv/pr-size-labeler@v1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
xs_label: 'size/XS'
|
||||
xs_max_size: '20'
|
||||
s_label: 'size/S'
|
||||
s_max_size: '50'
|
||||
m_label: 'size/M'
|
||||
m_max_size: '150'
|
||||
l_label: 'size/L'
|
||||
l_max_size: '300'
|
||||
xl_label: 'size/XL'
|
||||
fail_if_xl: 'false'
|
||||
message_if_xl: >
|
||||
'This PR has too many changes.
|
||||
Please make sure you are NOT addressing multiple issues with one PR.'
|
Loading…
Reference in a new issue