-
Notifications
You must be signed in to change notification settings - Fork 5.5k
chore(ci): Add action and documentation for semantic commits #26122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Semantic Commit Check | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - edited | ||
| - synchronize | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| semantic-pr: | ||
| concurrency: | ||
| group: ${{ github.workflow }}-semantic-commit-check-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
| name: Validate PR Title | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: amannn/action-semantic-pull-request@2d952a1bf90a6a7ab8f0293dc86f5fdf9acb1915 # v5.5.3 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| types: | | ||
| feat | ||
| fix | ||
| docs | ||
| refactor | ||
| perf | ||
| test | ||
| build | ||
| ci | ||
| chore | ||
| revert | ||
| misc | ||
| requireScope: false | ||
| subjectPattern: ^[A-Z].*[^.]$ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to also cover the list of scopes because we do define a list of acceptable ones?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added, also linked the CONTRIBUTING guide to here to save space and have one source of truth
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I ended up reverting this, because we also need the ability to specify connectors and plugins as individual scopes. We'd have to hardcode them here, which seems less than ideal, so I chose to move them back to the documentation exclusively. |
||
| subjectPatternError: | | ||
| The PR title subject must start with a capital letter and not end with a period. | ||
Uh oh!
There was an error while loading. Please reload this page.