Skip to content

Commit 5e45bca

Browse files
committed
Updated workflows
1 parent ca12bf3 commit 5e45bca

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# v0.1
2+
name: Lock old (and closed) issues
3+
4+
on:
5+
schedule:
6+
- cron: '25 1 * * 0'
7+
workflow_dispatch:
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
lock:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Lock old closed issues
17+
uses: dessant/lock-threads@v6
18+
with:
19+
github-token: ${{ github.token }}
20+
issue-inactive-days: '180' # 6 months (approximately)
21+
issue-lock-reason: 'resolved'
22+
process-only: 'issues'
23+
issue-comment: 'This issue has been locked since there has not been any recent activity after it was closed. Please open a new issue if you want to report a problem or suggest a new feature and eventually reference this issue there.'

.github/workflows/new-issue.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v0.6
1+
# v0.7
22
name: New issue
33

44
on:
@@ -19,10 +19,9 @@ jobs:
1919
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
GH_REPO: ${{ github.repository }}
2121
NUMBER: ${{ github.event.issue.number }}
22-
2322
- name: Setup node
2423
id: setup_node
25-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v6
2625
with:
2726
node-version: 20
2827
- name: Get package name
@@ -72,4 +71,4 @@ jobs:
7271
env:
7372
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7473
GH_REPO: ${{ github.repository }}
75-
NUMBER: ${{ github.event.issue.number }}
74+
NUMBER: ${{ github.event.issue.number }}

0 commit comments

Comments
 (0)