Add a new check-commits CI job using gitlint#1263
Merged
anoopcs9 merged 2 commits intoceph:masterfrom May 7, 2026
Merged
Conversation
5c66ac2 to
5c061fc
Compare
anoopcs9
reviewed
Apr 30, 2026
Collaborator
|
Feel free to ignore but pasting the warning I saw from corresponding CI runs: |
5c061fc to
3f697a6
Compare
Collaborator
Author
Added the option to suppress the warnings. |
Collaborator
Author
|
@Mergifyio rebase |
Contributor
|
Deprecation notice: This pull request comes from a fork and was rebased using |
Contributor
✅ Branch has been successfully rebased |
3f697a6 to
7803e3a
Compare
Collaborator
Author
|
@Mergifyio update |
Contributor
✅ Branch has been successfully updated |
Collaborator
Author
|
Mergify is now deprecating the rebase action but the thing they tell you to do (update) creates a merge commit :shaking_fist: |
Collaborator
Author
|
@anoopcs9 ping |
54f25b6 to
a461b02
Compare
This will be later used to check commit messages. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This uses the gitlint tool to check for basic formatting of commit messages. In particular we want to require the Signed-off-by on all commits. We were kinda-sorta requiring it but not always enforcing it. ceph/ceph has been requiring it for a long time. I also think it's even more important now that people declare they have the right to contribute change now that more and more tools are being used to generate code. Signed-off-by: John Mulligan <jmulligan@redhat.com>
a461b02 to
1943faf
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new check-commits CI job that uses gitlint to enforce some basic parameters of git commit messages in contributions to go-ceph. In particular we want to require the Signed-off-by on all commits. We were kinda-sorta requiring it but not always enforcing it. ceph/ceph has been requiring it for a long time.
I also think it's even more important now that people declare they have
the right to contribute change now that more and more tools are being
used to generate code.
I've used gitlint in other projects with success so I chose that rather than agonize other available tools.