Skip to content

Commit 34325ed

Browse files
authored
Merge pull request #4964 from stacks-network/ci/lock-threads
Workflow to lock closed issues/pr/discussions
2 parents 3001794 + d8151d5 commit 34325ed

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/lock-threads.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Workflow to lock closed PRs/issues/discussions
2+
## timeframe to lock defaults to:
3+
## issues: 30 days
4+
## prs: 30 days
5+
## discussions: 365 days
6+
7+
name: "Lock Threads"
8+
9+
on:
10+
schedule:
11+
- cron: "0 0 * * *"
12+
workflow_dispatch:
13+
14+
permissions:
15+
issues: write
16+
pull-requests: write
17+
discussions: write
18+
19+
concurrency:
20+
group: lock-threads
21+
22+
jobs:
23+
## Lock closed issues/prs/discussions
24+
lock:
25+
name: Lock Threads
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Lock Threads
29+
id: lock_threads
30+
uses: stacks-network/actions/lock-threads@main
31+
with:
32+
github-token: ${{ secrets.GH_TOKEN }}
33+
issue-inactive-days: 7
34+
pr-inactive-days: 7
35+
discussion-inactive-days: 7
36+

CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ libsigner/**/*.rs @stacks-network/blockchain-team-signer
1616
stacks-signer/**/*.rs @stacks-network/blockchain-team-signer
1717

1818
# CI workflows
19-
./github/workflows/ @stacks-network/blockchain-team-ci
20-
./github/actions/ @stacks-network/blockchain-team-ci
19+
/.github/workflows/ @stacks-network/blockchain-team-ci
20+
/.github/actions/ @stacks-network/blockchain-team-ci

0 commit comments

Comments
 (0)