[DEVPLAT-2283] Update job-notification action to use blocks and take … #58
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: PR Check | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
jobs: | |
check-commit-message: | |
name: Check Commit Message | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check Commit Message | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^(?:ci|feat|fix|docs|style|refactor|perf|test|chore)\(?(?:\w+|\s|\-|_)?\)?:\s\w+' | |
error: "One or more commit messages do not meet the format requirements. Please check the requirements here: https://github.com/scribd/job-notification#commit-messages" | |
accessToken: ${{ secrets.SCRIBD_GITHUB_RELEASE_TOKEN }} | |
excludeTitle: true | |
excludeDescription: true | |
checkAllCommitMessages: true |