Skip to content

Commit 6112078

Browse files
authored
Merge pull request DomT4#155 from toobuntu/ci/dependabot-hashes
ci: sync stale issues workflow and pin actions to full commit SHA
2 parents 386308b + 8ec9770 commit 6112078

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

.github/workflows/generate-help-output.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
test-bot: false
2020

2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
with:
2424
ref: ${{ github.ref_name }}
2525

2626
- name: Install Python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
2828
with:
2929
python-version: '3'
3030

Original file line numberDiff line numberDiff line change
@@ -1,38 +1,44 @@
11
# This file is synced from the `.github` repository, do not modify it directly.
2-
name: Triage issues
2+
name: Manage stale issues
33

44
on:
55
push:
66
paths:
7-
- .github/workflows/triage-issues.yml
7+
- .github/workflows/stale-issues.yml
88
branches-ignore:
99
- dependabot/**
1010
schedule:
1111
# Once every day at midnight UTC
1212
- cron: "0 0 * * *"
1313
issue_comment:
1414

15-
permissions:
16-
issues: write
17-
pull-requests: write
15+
permissions: {}
16+
17+
defaults:
18+
run:
19+
shell: bash -xeuo pipefail {0}
1820

1921
concurrency:
20-
group: triage-issues
22+
group: stale-issues
2123
cancel-in-progress: ${{ github.event_name != 'issue_comment' }}
2224

2325
jobs:
2426
stale:
2527
if: >
26-
github.repository_owner == 'Homebrew' && (
28+
github.repository_owner == 'DomT4' && (
2729
github.event_name != 'issue_comment' || (
2830
contains(github.event.issue.labels.*.name, 'stale') ||
2931
contains(github.event.pull_request.labels.*.name, 'stale')
3032
)
3133
)
3234
runs-on: ubuntu-latest
35+
permissions:
36+
contents: write
37+
issues: write
38+
pull-requests: write
3339
steps:
3440
- name: Mark/Close Stale Issues and Pull Requests
35-
uses: actions/stale@v9
41+
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
3642
with:
3743
repo-token: ${{ secrets.GITHUB_TOKEN }}
3844
days-before-stale: 21
@@ -45,19 +51,24 @@ jobs:
4551
recent activity. It will be closed if no further activity occurs.
4652
exempt-issue-labels: "gsoc-outreachy,help wanted,in progress"
4753
exempt-pr-labels: "gsoc-outreachy,help wanted,in progress"
54+
delete-branch: true
4855

4956
bump-pr-stale:
5057
if: >
51-
github.repository_owner == 'Homebrew' && (
58+
github.repository_owner == 'DomT4' && (
5259
github.event_name != 'issue_comment' || (
5360
contains(github.event.issue.labels.*.name, 'stale') ||
5461
contains(github.event.pull_request.labels.*.name, 'stale')
5562
)
5663
)
5764
runs-on: ubuntu-latest
65+
permissions:
66+
contents: write
67+
issues: write
68+
pull-requests: write
5869
steps:
5970
- name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests
60-
uses: actions/stale@v9
71+
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
6172
with:
6273
repo-token: ${{ secrets.GITHUB_TOKEN }}
6374
days-before-stale: 2
@@ -68,17 +79,4 @@ jobs:
6879
pull request open, add a `help wanted` or `in progress` label.
6980
exempt-pr-labels: "help wanted,in progress"
7081
any-of-labels: "bump-formula-pr,bump-cask-pr"
71-
72-
lock-threads:
73-
if: github.repository_owner == 'Homebrew' && github.event_name != 'issue_comment'
74-
runs-on: ubuntu-latest
75-
steps:
76-
- name: Lock Outdated Threads
77-
uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771
78-
with:
79-
github-token: ${{ secrets.GITHUB_TOKEN }}
80-
process-only: 'issues, prs'
81-
issue-inactive-days: 30
82-
add-issue-labels: outdated
83-
pr-inactive-days: 30
84-
add-pr-labels: outdated
82+
delete-branch: true

0 commit comments

Comments
 (0)