这是indexloc提供的服务,不要输入任何密码
Skip to content

Add gitSignOff option #36243

@rarkins

Description

@rarkins

Describe the proposed change(s).

Note: it's possible to achieve git sign-off's today using commitBody, although it doesn't apply to config migration PRs. The purpose of this feature is to make it a "first class" option.

Configuration

Add new config option gitSignOff with possible values "enabled", "disabled" and "auto" (default). It should be configurable in repository config.

Automatic detection

When the value is "auto" then Renovate should do similarly to when semanticCommits=auto and check recent commits for evidence of use in the repo. However, unlike semanticCommits, Renovate should set gitSignOff to "enabled" if any of the recent commits include a Signed-Off-By: line in the commit messages (by any user/author).

Effect

If gitSignOff is then "enabled", Renovate should add Signed-Off-By: {{{gitAuthor}}} as the last line of the commit message body.

This should apply to all commits, including update/upgrade commits, onboarding commits, and config migration commits.

Migration of existing settings

The :gitSignOff preset should be changed from using commitBody to using gitSignOff=enabled. Additionally, if the user configures the string Signed-Off-By: {{{gitAuthor}}} in commitBody then it should also be migrated to gitSignOff=enabled and the commitBody configuration removed if that was the only content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core:gitRelated to our git platform layerpriority-4-lowLow priority, unlikely to be done unless it becomes important to more people

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions