forked from MouseLand/cellpose
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 948 Bytes
/
pr-labeler.yml
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
33
34
35
36
name: size-label
on: pull_request
jobs:
PRSizeLabeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
outputs:
sizeLabel: ${{ steps.label.outputs.sizeLabel }}
steps:
- name: size-label
id: label
uses: "pascalgn/size-label-action@v0.5.2"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
sizes: >
{
"0": "XS",
"5": "S",
"15": "M",
"25": "L",
"35": "XL",
"50": "XXL",
"80": "XXXL",
"150": "Too_Big"
}
TooBig:
runs-on: ubuntu-latest
needs: PRSizeLabeler
if: ${{ contains(needs.PRSizeLabeler.outputs.sizeLabel, 'Too_Big') }}
steps:
- run: |
echo "The PR is too big, nobody can review something like that. Please split it into multiple PR's"
exit 1