-
Notifications
You must be signed in to change notification settings - Fork 44
32 lines (28 loc) · 940 Bytes
/
pr_labeler.yaml
File metadata and controls
32 lines (28 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: PR Labeler
on: pull_request_target # Runs when the someone creates a pull request
permissions:
contents: read
pull-requests: write
jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- name: branch-label # Labels the Pull Request by branch name as which branch the pr is raised to
uses: TimonVS/pr-labeler-action@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value
- name: size-label # Labels the Pull Request by the no of lines of code
uses: "pascalgn/size-label-action@v0.4.2"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
sizes: >
{
"0": "XS",
"20": "S",
"50": "M",
"200": "L",
"800": "XL",
"2000": "XXL"
}