Skip to content

Commit d383eae

Browse files
committed
stale-issues.yml: update to match main configuration
1 parent 50daf25 commit d383eae

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/stale-issues.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# This file is synced from the `.github` repository, do not modify it directly.
2+
name: Manage stale issues
3+
4+
on:
5+
push:
6+
paths:
7+
- .github/workflows/stale-issues.yml
8+
branches-ignore:
9+
- dependabot/**
10+
schedule:
11+
# Once every day at midnight UTC
12+
- cron: "0 0 * * *"
13+
issue_comment:
14+
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
19+
concurrency:
20+
group: stale-issues
21+
cancel-in-progress: ${{ github.event_name != 'issue_comment' }}
22+
23+
jobs:
24+
stale:
25+
if: >
26+
github.repository_owner == 'Homebrew' && (
27+
github.event_name != 'issue_comment' || (
28+
contains(github.event.issue.labels.*.name, 'stale') ||
29+
contains(github.event.pull_request.labels.*.name, 'stale')
30+
)
31+
)
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Mark/Close Stale Issues and Pull Requests
35+
uses: actions/stale@v9
36+
with:
37+
repo-token: ${{ secrets.GITHUB_TOKEN }}
38+
days-before-stale: 21
39+
days-before-close: 7
40+
stale-issue-message: >
41+
This issue has been automatically marked as stale because it has not had
42+
recent activity. It will be closed if no further activity occurs.
43+
stale-pr-message: >
44+
This pull request has been automatically marked as stale because it has not had
45+
recent activity. It will be closed if no further activity occurs.
46+
exempt-issue-labels: "gsoc-outreachy,help wanted,in progress"
47+
exempt-pr-labels: "gsoc-outreachy,help wanted,in progress"
48+
49+
bump-pr-stale:
50+
if: >
51+
github.repository_owner == 'Homebrew' && (
52+
github.event_name != 'issue_comment' || (
53+
contains(github.event.issue.labels.*.name, 'stale') ||
54+
contains(github.event.pull_request.labels.*.name, 'stale')
55+
)
56+
)
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests
60+
uses: actions/stale@v9
61+
with:
62+
repo-token: ${{ secrets.GITHUB_TOKEN }}
63+
days-before-stale: 2
64+
days-before-close: 1
65+
stale-pr-message: >
66+
This pull request has been automatically marked as stale because it has not had
67+
recent activity. It will be closed if no further activity occurs. To keep this
68+
pull request open, add a `help wanted` or `in progress` label.
69+
exempt-pr-labels: "help wanted,in progress"
70+
any-of-labels: "bump-formula-pr,bump-cask-pr"

0 commit comments

Comments
 (0)