Sync triage workflow between cask repos (#105636)

This commit is contained in:
Rylan Polster 2021-05-12 20:10:44 -04:00 committed by GitHub
parent df73fcf18b
commit e8e9577c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 22 deletions

View File

@ -19,7 +19,7 @@ puts 'Detecting changes…'
'.github/*.md',
'.github/*.yml',
'.github/ISSUE_TEMPLATE/*.{md,yml}',
'.github/workflows/{cache,ci,dispatch-command,rebase,rerun-workflow,review,self-approve}.yml',
'.github/workflows/{cache,ci,dispatch-command,rebase,rerun-workflow,review,self-approve,triage}.yml',
'.gitignore',
'.travis.yml',
'Casks/.rubocop.yml',

View File

@ -1,21 +0,0 @@
name: Review
on: pull_request_target
jobs:
review:
if: startsWith(github.repository, 'Homebrew/')
runs-on: ubuntu-latest
steps:
- name: Label Pull Request
uses: Homebrew/actions/label-pull-requests@master
with:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
def: |
[
{
"label": "documentation",
"path": "(.*\\.md|\\.github/ISSUE_TEMPLATE/.*\\.yml)"
}
]
if: always()

View File

@ -30,6 +30,9 @@ jobs:
"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`"