Skip to content

Conversation

@josill
Copy link
Contributor

@josill josill commented Jan 19, 2026

Fix #1699

Remove the title field from SCM commit message configuration. Commit titles now always use the target name (or description as fallback), removing the ability to override the commit title.

Breaking Change: Configurations using commitMessage.title will need to remove that field. Ensure targets have meaningful name fields (which should already be the case).

Test

To test this pull request, you can run the following commands:

cd pkg/plugins/scms/git/commit
go test

Tradeoff

Removing the title configuration field reduces flexibility but simplifies the API and enforces consistency. Users who relied on custom commit titles will need to ensure their target names are descriptive enough for commit messages.

Potential improvement

Consider adding validation to ensure target names are always set and meaningful, since they now directly impact commit messages.

@josill josill marked this pull request as ready for review January 19, 2026 12:42
@olblak
Copy link
Member

olblak commented Jan 20, 2026

Thanks for the pull request, I still have it on my radar to review, but I didn't have the time yet

@olblak
Copy link
Member

olblak commented Jan 20, 2026

Consider adding validation to ensure target names are always set and meaningful, since they now directly impact commit messages.

Already the case, the pipeline will fail if the target name is not specified
cfr

if t.Config.Name == "" {

Something we could improve (in a different pullrequest) is to tell jsonschema to require the name on

Name string `yaml:",omitempty"`

to provide a hint

@olblak olblak merged commit a3aa2dc into updatecli:main Jan 20, 2026
5 checks passed
@olblak olblak added scm-github SCM of type GiHhub scm-git SCM of kind "Git" scm-gittea scm-gitlab scm-bitbucket All things related to the bitbucket integration ux labels Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecated scm-bitbucket All things related to the bitbucket integration scm-git SCM of kind "Git" scm-github SCM of type GiHhub scm-gitlab scm-gittea ux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Deprecate and remove scm commit title configuration

2 participants