Skip to content

Commit 787ee6b

Browse files
authored
Merge pull request #36 from linuxserver/stale-exempt
Add stale exempt labels to the repository
2 parents 59fc4c4 + 21060ab commit 787ee6b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/issues-cron.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,31 @@ concurrency:
1111
group: lock
1212

1313
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+
1439
stale:
1540
runs-on: ubuntu-latest
1641

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy