feat: add alias reference calculate swtich #4517
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: Check commit message | |
concurrency: | |
group: commit-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
jobs: | |
check_commit_message: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Type | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^(feat|fix|docs|style|refactor|chore|perf|test|build|ci|revert)(\(.*\))?:' | |
error: 'Commit type must be one of the following: feat|fix|docs|style|refactor|chore|perf|test|build|ci|revert.' | |
excludeDescription: true | |
- name: Check Format | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^(\w+)(\([^()]+\))?:\s(.+)$' | |
error: 'Your commit message is not formatted, check the docs for more details: https://ekuiper.org/docs/en/latest/CONTRIBUTING.html#commit-message-guidelines' | |
excludeDescription: true | |
- name: Check Length | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^.{5,50}$' | |
error: 'The maximum commit title length of 50 characters is exceeded.' | |
excludeDescription: true |