Skip to content

Commit 995382b

Browse files
authored
ci: centralize stale and fix add-to-triage (#188)
* ci: add `stale` and fix `add-to-triage` * Update add-to-triage.yml * Update add-to-triage.yml * Update stale.yml
1 parent 9aed225 commit 995382b

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

.github/workflows/add-to-triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- reopened
88
- transferred
99

10-
pull_request:
10+
pull_request_target:
1111
types:
1212
- opened
1313
- reopened
@@ -16,4 +16,4 @@ jobs:
1616
add-to-triage:
1717
uses: eslint/workflows/.github/workflows/add-to-triage.yml@main
1818
secrets:
19-
PROJECT_BOT_TOKEN: ${{ secrets.PROJECT_BOT_TOKEN }}
19+
project_bot_token: ${{ secrets.PROJECT_BOT_TOKEN }}

.github/workflows/stale.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,11 @@
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
1+
name: stale
72

83
on:
9-
schedule:
10-
- cron: '31 22 * * *'
4+
schedule:
5+
- cron: "31 22 * * *" # Runs every day at 10:31 PM UTC
116

127
jobs:
13-
stale:
14-
15-
runs-on: ubuntu-latest
16-
permissions:
17-
issues: write
18-
pull-requests: write
19-
20-
steps:
21-
- uses: actions/stale@v3
22-
with:
23-
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
days-before-stale: 60
25-
days-before-close: 7
26-
stale-issue-message: 'Oops! It looks like we lost track of this issue. What do we want to do here? This issue will auto-close in 7 days without an update.'
27-
stale-pr-message: 'Oops! It looks like we lost track of this pull request. What do we want to do here? This pull request will auto-close in 7 days without an update.'
28-
exempt-all-assignees: true
29-
exempt-issue-labels: accepted
30-
exempt-pr-labels: accepted
8+
stale:
9+
uses: eslint/workflows/.github/workflows/stale.yml@main
10+
secrets:
11+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)