-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Adding influx's semantic commit and PR message checker, so we … (
#11009) * chore: Adding influx's semantic commit and PR message checker, so we can deprecate semantic-pull-requests * feat: change commit history for semantic validation to 1 (last commit)
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: "Semantic PR and Commit Messages" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, edited] | ||
|
||
jobs: | ||
semantic: | ||
uses: influxdata/validate-semantic-github-messages/.github/workflows/semantic.yml@main | ||
# optional; 250 is default and max | ||
with: | ||
COMMITS_HISTORY: 1 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tysonkamp
Author
Contributor
|
@tysonkamp - I must have missed this addition in the last PR. Can you confirm this config will ensure that only the last commit a user made is semantic?
I think what we are really after from the previous tool is checking the PR title. When reviewing PRs, All our merges happen in and through GitHub. As such the title is what is put in the commit message header and what we want to ensure is correct before proceeding.
Would you be open to adding a titleOnly option similar to what the previous tool had?
@sspaink @reimda would that meet our needs and allow us to move over?