2021-04-28 05:47:15 +08:00
|
|
|
name: Triage tasks
|
|
|
|
|
|
|
|
on: pull_request_target
|
|
|
|
|
2021-07-09 20:00:05 +08:00
|
|
|
concurrency:
|
2021-07-10 00:23:59 +08:00
|
|
|
group: "triage-${{ github.event.number }}"
|
2021-07-09 20:00:05 +08:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-07-05 00:32:40 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-04-28 05:47:15 +08:00
|
|
|
jobs:
|
2021-05-11 00:30:34 +08:00
|
|
|
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: |
|
2021-11-21 05:49:46 +08:00
|
|
|
- label: new cask
|
|
|
|
status: added
|
2023-08-10 02:58:57 +08:00
|
|
|
path: Casks/.+
|
2021-11-21 05:49:46 +08:00
|
|
|
|
|
|
|
- label: marked for removal/rejection
|
|
|
|
status: removed
|
2023-08-10 02:58:57 +08:00
|
|
|
path: Casks/.+
|
2021-11-21 05:49:46 +08:00
|
|
|
|
|
|
|
- label: documentation
|
|
|
|
path: (.*\.md|\.github/ISSUE_TEMPLATE/.*\.yml)
|
|
|
|
|
|
|
|
- label: bump-cask-pr
|
|
|
|
pr_body_content: Created with `brew bump-cask-pr`
|
2022-08-29 07:32:59 +08:00
|
|
|
|
|
|
|
- label: missing description
|
2023-08-10 02:58:57 +08:00
|
|
|
path: Casks/.+
|
2022-08-29 07:32:59 +08:00
|
|
|
missing_content: \n desc .+\n
|
|
|
|
|
|
|
|
- label: appcast migration needed
|
2023-08-10 02:58:57 +08:00
|
|
|
path: Casks/.+
|
2022-08-29 07:32:59 +08:00
|
|
|
content: \n appcast .+\n
|
2023-02-21 10:27:59 +08:00
|
|
|
|
|
|
|
- label: missing zap
|
2023-08-10 02:58:57 +08:00
|
|
|
path: Casks/.+
|
2023-02-28 16:57:54 +08:00
|
|
|
missing_content: zap .+\n
|