Skip to content

目次のプレビュー #654

目次のプレビュー

目次のプレビュー #654

Workflow file for this run

name: Validate PR
on:
pull_request:
branches:
- main
- canary
types:
- opened
- synchronize
- labeled
- unlabeled
jobs:
validate-pr:
name: Validate PR
runs-on: ubuntu-latest
steps:
- name: Check label
if: |
!contains(github.event.pull_request.labels.*.name, 'bug') &&
!contains(github.event.pull_request.labels.*.name, 'enhancement') &&
!contains(github.event.pull_request.labels.*.name, 'chore') &&
!contains(github.event.pull_request.labels.*.name, 'feature') &&
!contains(github.event.pull_request.labels.*.name, 'release')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL: ${{ github.event.pull_request.comments_url }}
run: |
echo "::error::次のラベルを付けてください。 labels: bug, enhancement, feature, chore, release"
exit 1