Skip to content

Commit

Permalink
Refine label check of PR (#4486)
Browse files Browse the repository at this point in the history
* refine

* fix yml syntax

* use pr.*

* refine
  • Loading branch information
jackalcooper authored Mar 24, 2021
1 parent 8c7476c commit ad4dbf3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-18.04
name: Labels
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check labels
uses: OneFlow-Inc/verify-pr-label-action@master
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
required-type-labels: 'bug, enhancement, purge, feature, documentation'
required-component-labels: 'op, system, eager, build, xla, python, ci, test, tooling, onnx'
- name: Check type labels 'bug, enhancement, purge, feature, documentation'
if: (contains(github.event.pull_request.labels.*.name, 'bug') || contains(github.event.pull_request.labels.*.name, 'enhancement') || contains(github.event.pull_request.labels.*.name, 'purge') || contains(github.event.pull_request.labels.*.name, 'feature') || contains(github.event.pull_request.labels.*.name, 'documentation')) == false
run: |
exit 1
- name: Check component labels 'op, system, eager, build, xla, python, ci, test, tooling, onnx'
if: (contains(github.event.pull_request.labels.*.name, 'op') || contains(github.event.pull_request.labels.*.name, 'system') || contains(github.event.pull_request.labels.*.name, 'eager') || contains(github.event.pull_request.labels.*.name, 'build') || contains(github.event.pull_request.labels.*.name, 'xla') || contains(github.event.pull_request.labels.*.name, 'python') || contains(github.event.pull_request.labels.*.name, 'ci') || contains(github.event.pull_request.labels.*.name, 'test') || contains(github.event.pull_request.labels.*.name, 'tooling') || contains(github.event.pull_request.labels.*.name, 'onnx')) == false
run: |
exit 2

0 comments on commit ad4dbf3

Please sign in to comment.