-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
83 lines (69 loc) · 2.72 KB
/
triage.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Triage tasks
on: pull_request_target
concurrency:
group: "triage-${{ github.event.number }}"
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
limit-pull-requests:
if: >
always() && github.repository_owner == 'Homebrew' &&
(github.event_name == 'pull_request_target' &&
github.event.action == 'opened')
runs-on: ubuntu-latest
steps:
- uses: Homebrew/actions/limit-pull-requests@master
with:
except-users: |
BrewTestBot
comment-limit: 15
comment: |
Hi, thanks for your contribution to Homebrew! You already have >=15 open pull requests, so please get them ready to be merged or close them before you open more. If CI fails on any of them, please fix it or ask for help doing so.
If you are performing simple version bumps, @BrewTestBot automatically bumps [a list of casks](https://github.com/${{ github.repository }}/blob/HEAD/.github/autobump.txt) so you don't need to. Please take a look at issues and pull requests labelled https://github.com/${{ github.repository }}/labels/help%20wanted and see if you can help to fix any of them. Thanks!
close-limit: 30
close: true
triage:
runs-on: ubuntu-latest
steps:
- name: Check commit format
uses: Homebrew/actions/check-commit-format@master
with:
token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
- name: Label pull request
uses: Homebrew/actions/label-pull-requests@master
if: always()
with:
token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
def: |
- label: cask deprecated
path: Casks/.+
content: \n deprecate!.*\n
- label: cask disabled
path: Casks/.+
content: \n disable!.*\n
- label: new cask
status: added
path: Casks/.+
- label: marked for removal/rejection
status: removed
path: Casks/.+
- label: documentation
path: (.*\.md|\.github/ISSUE_TEMPLATE/.*\.yml)
- label: bump-cask-pr
pr_body_content: Created with `brew bump-cask-pr`
- label: missing description
path: Casks/.+
missing_content:
- \n desc .+\n
- cask "font-
- label: extract_plist livecheck
path: Casks/.+
content: strategy :extract_plist
- label: missing zap
path: Casks/.+
missing_content: zap .+\n
- label: autobump
path: \.github/autobump\.txt
allow_any_match: true