Skip to content

Commit b0caa1b

Browse files
committed
ci: lock old issues
1 parent d9b1611 commit b0caa1b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/stale.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Lock old issues'
2+
3+
on:
4+
schedule:
5+
- cron: '0 15 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
# pull-requests: write
11+
# discussions: write
12+
13+
concurrency:
14+
group: lock-threads
15+
16+
jobs:
17+
lock-stale:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: dessant/lock-threads@v5
21+
id: lock
22+
with:
23+
issue-inactive-days: 90
24+
process-only: issues
25+
- name: Log processed threads
26+
run: |
27+
if [ '${{ steps.lock.outputs.issues }}' ]; then
28+
echo "Issues:" && echo '${{ steps.lock.outputs.issues }}' | jq -r '.[] | "https://github.com/\(.owner)/\(.repo)/issues/\(.issue_number)"'
29+
fi

0 commit comments

Comments
 (0)