Skip to content

Add a new check-commits CI job using gitlint#1263

Merged
anoopcs9 merged 2 commits intoceph:masterfrom
phlogistonjohn:jjm-gitlint
May 7, 2026
Merged

Add a new check-commits CI job using gitlint#1263
anoopcs9 merged 2 commits intoceph:masterfrom
phlogistonjohn:jjm-gitlint

Conversation

@phlogistonjohn
Copy link
Copy Markdown
Collaborator

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.

@phlogistonjohn phlogistonjohn added the no-API This PR does not include any changes to the public API of a go-ceph package label Apr 29, 2026
@phlogistonjohn phlogistonjohn force-pushed the jjm-gitlint branch 2 times, most recently from 5c66ac2 to 5c061fc Compare April 29, 2026 17:51
@phlogistonjohn phlogistonjohn requested a review from anoopcs9 April 29, 2026 17:53
@phlogistonjohn phlogistonjohn changed the title [WIP] Add a new check-commits CI job using gitlint Add a new check-commits CI job using gitlint Apr 29, 2026
Comment thread .gitlint Outdated
Comment thread .gitlint
@anoopcs9
Copy link
Copy Markdown
Collaborator

Feel free to ignore but pasting the warning I saw from corresponding CI runs:

Run actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
  with:
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
    freethreaded: false
Warning: Neither 'python-version' nor 'python-version-file' inputs were supplied. Attempting to find '.python-version' file.
Warning: .python-version doesn't exist.
Warning: The `python-version` input is not set.  The version of Python currently in `PATH` will be used.

@phlogistonjohn
Copy link
Copy Markdown
Collaborator Author

Feel free to ignore but pasting the warning I saw from corresponding CI runs:

Run actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
  with:
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
    freethreaded: false
Warning: Neither 'python-version' nor 'python-version-file' inputs were supplied. Attempting to find '.python-version' file.
Warning: .python-version doesn't exist.
Warning: The `python-version` input is not set.  The version of Python currently in `PATH` will be used.

Added the option to suppress the warnings.

@phlogistonjohn phlogistonjohn requested a review from anoopcs9 April 30, 2026 18:11
@phlogistonjohn
Copy link
Copy Markdown
Collaborator Author

@Mergifyio rebase

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 2, 2026

Deprecation notice: This pull request comes from a fork and was rebased using bot_account impersonation. This capability will be removed on July 1, 2026. After this date, the rebase action will no longer be able to rebase fork pull requests with this configuration. Please switch to the update action/command to ensure compatibility going forward.

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 2, 2026

rebase

✅ Branch has been successfully rebased

@phlogistonjohn
Copy link
Copy Markdown
Collaborator Author

@Mergifyio update

@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 6, 2026

update

✅ Branch has been successfully updated

@phlogistonjohn
Copy link
Copy Markdown
Collaborator Author

Mergify is now deprecating the rebase action but the thing they tell you to do (update) creates a merge commit :shaking_fist:

@phlogistonjohn
Copy link
Copy Markdown
Collaborator Author

@anoopcs9 ping

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>
Copy link
Copy Markdown
Collaborator

@anoopcs9 anoopcs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

@anoopcs9 anoopcs9 merged commit 7b2c2ec into ceph:master May 7, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-API This PR does not include any changes to the public API of a go-ceph package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants