mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-26 15:07:14 +00:00
Add change counts labels to Actions labeler
This commit is contained in:
parent
abf898ff01
commit
49b7876b5a
12
.github/changed-lines-count-labeler.yml
vendored
Normal file
12
.github/changed-lines-count-labeler.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Add 'small' to any changes below 10 lines
|
||||||
|
small:
|
||||||
|
max: 9
|
||||||
|
|
||||||
|
# Add 'medium' to any changes between 10 and 100 lines
|
||||||
|
medium:
|
||||||
|
min: 10
|
||||||
|
max: 99
|
||||||
|
|
||||||
|
# Add 'large' to any changes for more than 100 lines
|
||||||
|
large:
|
||||||
|
min: 100
|
15
.github/workflows/labeler.yml
vendored
15
.github/workflows/labeler.yml
vendored
|
@ -9,6 +9,19 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v5
|
- name: Set basic labels
|
||||||
|
uses: actions/labeler@v5
|
||||||
with:
|
with:
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
|
changed-lines-count-labeler:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: An action for automatically labelling pull requests based on the changed lines count
|
||||||
|
steps:
|
||||||
|
- name: Set change count labels
|
||||||
|
uses: vkirilichev/changed-lines-count-labeler@v0.2
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
configuration-path: .github/changed-lines-count-labeler.yml
|
||||||
|
|
Loading…
Reference in a new issue