Merge pull request #20218 from Homebrew/migrate-semeru-jdk
[Homebrew/homebrew-cask-versions.git] / .github / workflows / triage.yml
bloba216f5f5a1bafc38fedd8792d60ff99be0dfd306
1 name: Triage tasks
3 on: pull_request_target
5 concurrency:
6   group: "triage-${{ github.event.number }}"
7   cancel-in-progress: true
9 permissions:
10   contents: read
11   pull-requests: write
13 jobs:
14   limit-pull-requests:
15     if: >
16       always() && github.repository_owner == 'Homebrew' &&
17       (github.event_name == 'pull_request_target' &&
18        github.event.action == 'opened')
19     runs-on: ubuntu-latest
20     steps:
21       - uses: Homebrew/actions/limit-pull-requests@master
22         with:
23           except-users: |
24             BrewTestBot
25           comment-limit: 15
26           comment: |
27             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.
28             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!
29           close-limit: 30
30           close: true
32   triage:
33     runs-on: ubuntu-latest
34     steps:
35       - name: Check commit format
36         uses: Homebrew/actions/check-commit-format@master
37         with:
38           token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
39       - name: Label pull request
40         uses: Homebrew/actions/label-pull-requests@master
41         if: always()
42         with:
43           token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
44           def: |
45             - label: cask deprecated
46               path: Cask/.+
47               content: \n  deprecate!.*\n
49             - label: cask disabled
50               path: Cask/.+
51               content: \n  disable!.*\n
53             - label: new cask
54               status: added
55               path: Casks/.+
57             - label: marked for removal/rejection
58               status: removed
59               path: Casks/.+
61             - label: documentation
62               path: (.*\.md|\.github/ISSUE_TEMPLATE/.*\.yml)
64             - label: bump-cask-pr
65               pr_body_content: Created with `brew bump-cask-pr`
67             - label: missing description
68               path: Casks/.+
69               missing_content: \n  desc .+\n
71             - label: extract_plist livecheck
72               path: Casks/.+
73               content: \n  strategy :extract_plist.*\n
75             - label: missing zap
76               path: Casks/.+
77               missing_content: zap .+\n
79             - label: autobump
80               path: \.github/autobump\.txt
81               allow_any_match: true