Prettier v3 の全面的な導入と VSCode の設定 #768
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') && | |
!contains(github.event.pull_request.labels.*.name, 'dependencies') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
URL: ${{ github.event.pull_request.comments_url }} | |
run: | | |
echo "::error::次のラベルを付けてください。 labels: bug, enhancement, feature, chore, release, dependencies" | |
exit 1 |