chore: add dayjs dependency (to be closed after workflows testing done) #3
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: Check PR title | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
- review_requested | |
- auto_merge_enabled | |
# Ensures that only one deploy task per branch/environment will run at a time! | |
concurrency: | |
group: check-pr-title-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
validatePrTitle: | |
name: Validate PR title | |
runs-on: ubuntu-latest | |
permissions: | |
statuses: write | |
timeout-minutes: 10 | |
steps: | |
- uses: aslafy-z/conventional-pr-title-action@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
success-state: 'PR Title follows the Conventional Commits spec' | |
failure-state: 'PR Title does not follow the Conventional Commits spec' |