Skip to content

Commit 37b7e89

Browse files
committed
stale-issues.yml: update to match main configuration
1 parent 6699b68 commit 37b7e89

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

.github/workflows/stale-issues.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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+
17+
defaults:
18+
run:
19+
shell: bash -xeuo pipefail {0}
20+
21+
concurrency:
22+
group: stale-issues
23+
cancel-in-progress: ${{ github.event_name != 'issue_comment' }}
24+
25+
jobs:
26+
stale:
27+
if: >
28+
github.repository_owner == 'Homebrew' && (
29+
github.event_name != 'issue_comment' || (
30+
contains(github.event.issue.labels.*.name, 'stale') ||
31+
contains(github.event.pull_request.labels.*.name, 'stale')
32+
)
33+
)
34+
runs-on: ubuntu-latest
35+
permissions:
36+
contents: write
37+
issues: write
38+
pull-requests: write
39+
steps:
40+
- name: Mark/Close Stale Issues and Pull Requests
41+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
42+
with:
43+
repo-token: ${{ secrets.GITHUB_TOKEN }}
44+
days-before-stale: 21
45+
days-before-close: 7
46+
stale-issue-message: >
47+
This issue has been automatically marked as stale because it has not had
48+
recent activity. It will be closed if no further activity occurs.
49+
stale-pr-message: >
50+
This pull request has been automatically marked as stale because it has not had
51+
recent activity. It will be closed if no further activity occurs.
52+
exempt-issue-labels: "gsoc-outreachy,help wanted,in progress"
53+
exempt-pr-labels: "gsoc-outreachy,help wanted,in progress"
54+
delete-branch: true
55+
56+
bump-pr-stale:
57+
if: >
58+
github.repository_owner == 'Homebrew' && (
59+
github.event_name != 'issue_comment' || (
60+
contains(github.event.issue.labels.*.name, 'stale') ||
61+
contains(github.event.pull_request.labels.*.name, 'stale')
62+
)
63+
)
64+
runs-on: ubuntu-latest
65+
permissions:
66+
contents: write
67+
issues: write
68+
pull-requests: write
69+
steps:
70+
- name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests
71+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
72+
with:
73+
repo-token: ${{ secrets.GITHUB_TOKEN }}
74+
days-before-stale: 2
75+
days-before-close: 1
76+
stale-pr-message: >
77+
This pull request has been automatically marked as stale because it has not had
78+
recent activity. It will be closed if no further activity occurs. To keep this
79+
pull request open, add a `help wanted` or `in progress` label.
80+
exempt-pr-labels: "help wanted,in progress"
81+
any-of-labels: "bump-formula-pr,bump-cask-pr"
82+
delete-branch: true

0 commit comments

Comments
 (0)