Skip to content

Commit 6943692

Browse files
authored
Merge pull request #68 from 1Password/sl/repo/add-stale-workflow
add workflow to identify and manage stale issues and PRs
2 parents 6f4f3b7 + 68b874e commit 6943692

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: "0 4 * * *"
11+
workflow_dispatch:
12+
13+
jobs:
14+
stale:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v5
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
days-before-stale: 14
25+
stale-issue-label: "stale:needs-attention"
26+
stale-issue-message: >
27+
This issue has been automatically marked as stale because it has not had recent activity.
28+
It will be closed in two weeks if no further activity occurs.
29+
1Password employees have been nudged.
30+
stale-pr-label: "stale:needs-attention"
31+
stale-pr-message: >
32+
This PR has been automatically marked as stale because it has not had recent activity.
33+
It will be closed in two weeks if no further activity occurs.
34+
1Password employees have been nudged.
35+
days-before-close: 14
36+
close-issue-message: >
37+
This issue has been automatically closed due to inactivity.
38+
Please re-open if this still requires attention.
39+
close-pr-message: >
40+
This pull request has been automatically closed due to inactivity.
41+
Please re-open if it is still required.
42+
exempt-issue-labels: "keep-alive"
43+
exempt-pr-labels: "keep-alive"

0 commit comments

Comments
 (0)