forked from Homebrew/brew
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.78 KB
/
triage-issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This file is synced from the `.github` repository, do not modify it directly.
name: Triage issues
on:
push:
paths:
- .github/workflows/triage-issues.yml
schedule:
# Once every day at midnight UTC
- cron: "0 0 * * *"
issue_comment:
jobs:
stale:
if: >
startsWith(github.repository, 'Homebrew/') && (
github.event_name != 'issue_comment' || (
contains(github.event.issue.labels.*.name, 'stale') ||
contains(github.event.pull_request.labels.*.name, 'stale')
)
)
runs-on: ubuntu-latest
steps:
- name: Mark/Close Stale Issues and Pull Requests
uses: actions/stale@v3
with:
repo-token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
days-before-stale: 21
days-before-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
exempt-issue-labels: "gsoc-outreachy,help wanted,in progress"
exempt-pr-labels: "gsoc-outreachy,help wanted,in progress"
lock-threads:
if: startsWith(github.repository, 'Homebrew/') && github.event_name != 'issue_comment'
runs-on: ubuntu-latest
steps:
- name: Lock Outdated Threads
uses: dessant/lock-threads@486f7380c15596f92b724e4260e4981c68d6bde6
with:
github-token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
issue-lock-inactive-days: 30
issue-lock-labels: outdated
pr-lock-inactive-days: 30
pr-lock-labels: outdated