-
Notifications
You must be signed in to change notification settings - Fork 15
ci(publishing): enforce conventional commit linting on the PR name #1413
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
ci(publishing): enforce conventional commit linting on the PR name #1413
Conversation
|
Can you provide examples? Also, some form of documentation should be added to the README. |
The lint used links to this conventional commit format: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1413 +/- ##
==========================================
+ Coverage 71.16% 71.22% +0.05%
==========================================
Files 403 411 +8
Lines 64368 65788 +1420
==========================================
+ Hits 45810 46859 +1049
- Misses 18558 18929 +371
🚀 New features to boost your workflow:
|
BenchmarksComparisonBenchmark execution time: 2026-01-08 11:30:21 Comparing candidate commit a48b9a6 in PR branch Found 1 performance improvements and 14 performance regressions! Performance is the same for 42 metrics, 2 unstable metrics. scenario:credit_card/is_card_number/ 3782-8224-6310-005
scenario:credit_card/is_card_number/ 378282246310005
scenario:credit_card/is_card_number/378282246310005
scenario:credit_card/is_card_number/37828224631000521389798
scenario:credit_card/is_card_number_no_luhn/ 378282246310005
scenario:credit_card/is_card_number_no_luhn/378282246310005
scenario:credit_card/is_card_number_no_luhn/37828224631000521389798
scenario:sql/obfuscate_sql_string
CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
Group 15
Group 16
Group 17
Group 18
Group 19
BaselineOmitted due to size. |
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-apple-darwin
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-apple-darwin
x86_64-unknown-linux-gnu
|
d603f64 to
41a60e3
Compare
CONTRIBUTING.md
Outdated
|
|
||
| ### Common Types | ||
|
|
||
| - **feat**: A new feature for the user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: given that this is library code, where do you draw the line between "refactor" and "feat", for changes that affect APIs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My two cents: If capabilities or functionality aren't changing then it's a refactor, even if it's a breaking change for a public API because something like a function name has changed. If you add a new parameter to a function it's likely a feat.
@hoolioh Whatever we agree on should probably be documented to minimize confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes the line can be a little bit blurry but I agree with @ekump pointed out. I the changes don't add any new functionality to the end user I would consider it a refactor even though there is breaking changes, in which case it will add a !, otherwise it's a feat.
|
Is it compatible with jira tags (e.g. APMSP-1234 ) ? Also descriptions mentions commit message being checked but the ci seems to only check for PR name, is it enforced only for squash commit message ? |
|
@VianneyRuhlmann You should be able to add the JIRA tag at the end according to https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional#subject-case |
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
|
What does this PR do?
As part of the versioning/publishing work We're at aiming at autogenerating the changelog based on PR descriptions. Therefore having a standarized format to craft the descriptions will help in that regard. In that regard this PR enforce the following restrictions:
Format
Commit messages and PR titles should follow this structure:
Common Types
Scope (Optional)
The scope provides additional context about which part of the codebase is affected:
Breaking Changes
Breaking changes should be indicated by a
!after the type/scope:Examples
Good commit messages:
feat: add support for custom metadata tagsfix(profiling): resolve deadlock in thread samplingdocs: add examples for exception trackingchore: update dependencies to latest versionstest(crashtracker): add integration tests for signal handlingPoor commit messages:
update code(not descriptive, missing type)Fixed bug(missing type format, not descriptive)WIP(not meaningful)