Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit cb9996c

Browse files
committed
Update issue automation
1 parent 43abfa9 commit cb9996c

File tree

3 files changed

+47
-12
lines changed

3 files changed

+47
-12
lines changed

.github/workflows/remove-labels.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Remove labels from closed issues
2+
3+
on:
4+
issues:
5+
types:
6+
- closed
7+
8+
jobs:
9+
label_issues:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Remove labels
13+
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
14+
with:
15+
remove-labels: triage, needs-more-info

.github/workflows/stale-issues.yml

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
name: Mark stale issues and close them
1+
name: Label and close stale issues
22

33
on:
44
schedule:
55
- cron: "0 * * * *"
6+
workflow_dispatch:
67

78
jobs:
89
stale:
9-
1010
runs-on: ubuntu-latest
11-
1211
steps:
13-
- uses: blackchoey/stale@releases/v1.2
12+
- uses: actions/stale@v4.1.0
1413
with:
15-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16-
stale-issue-message: 'This issue has been automatically marked as stale because it has no recent activities. It will be closed if no further activity occurs within 3 days. Thank you for your contributions.'
17-
stale-issue-label: 'stale'
18-
days-before-stale: 7
19-
only-labels: 'needs more info'
20-
last-updated-user-type: 'collaborator'
21-
days-before-close: 3
22-
operations-per-run: 150
14+
days-before-stale: 30
15+
days-before-close: 7
16+
stale-issue-message: >-
17+
This issue has been automatically marked as stale because it has been
18+
inactive for 30 days. To reactivate the issue, simply post a comment
19+
with the requested information to help us diagnose this issue. If this
20+
issue remains inactive for another 7 days, it will be automatically
21+
closed.
22+
close-issue-message: >-
23+
This issue has been automatically closed due to inactivity. If you are
24+
still experiencing problems, please open a new issue.
25+
stale-issue-label: stale
26+
only-labels: needs-more-info

.github/workflows/triage-issues.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Label new issues
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- reopened
8+
9+
jobs:
10+
label_issues:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Add triage label
14+
uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90
15+
with:
16+
add-labels: triage

0 commit comments

Comments
 (0)