File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,31 @@ concurrency:
11
11
group : lock
12
12
13
13
jobs :
14
+
15
+ label :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Add stale exempt labels to the repository
20
+ run : |
21
+ # awaiting-approval
22
+ if curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/labels/awaiting-approval | grep -q 'awaiting-approval'; then
23
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X POST https://api.github.com/repos/${{ github.repository }}/labels/awaiting-approval \
24
+ -d '{"description":"Stale exempt"}'
25
+ else
26
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X POST https://api.github.com/repos/${{ github.repository }}/labels \
27
+ -d '{"name":"awaiting-approval","description":"Stale exempt"}'
28
+ fi
29
+
30
+ # work-in-progress
31
+ if curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/labels/work-in-progress | grep -q 'work-in-progress'; then
32
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X POST https://api.github.com/repos/${{ github.repository }}/labels/work-in-progress \
33
+ -d '{"description":"Stale exempt"}'
34
+ else
35
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -X POST https://api.github.com/repos/${{ github.repository }}/labels \
36
+ -d '{"name":"work-in-progress","description":"Stale exempt"}'
37
+ fi
38
+
14
39
stale :
15
40
runs-on : ubuntu-latest
16
41
You can’t perform that action at this time.
0 commit comments