Skip to content

util: add DCO sign-off to Spring Initializr PRs#4371

Merged
jinseopkim0 merged 4 commits intomainfrom
release-initializr-dco
Mar 17, 2026
Merged

util: add DCO sign-off to Spring Initializr PRs#4371
jinseopkim0 merged 4 commits intomainfrom
release-initializr-dco

Conversation

@jinseopkim0
Copy link
Copy Markdown
Contributor

@jinseopkim0 jinseopkim0 commented Mar 11, 2026

This PR updates the automated Spring Initializr PR creation step in the release script (util/release.go) to automatically append a Developer Certificate of Origin (DCO) sign-off to the pull request body.

Since spring-io/start.spring.io is an upstream Spring project, it requires a DCO sign-off for all contributions. This enhancement ensures that the PRs generated by our release script are compliant and don't get blocked by upstream bots.

Adds new flags to `release.go` to provide more control over the release
lifecycle and allow resuming from failures:
- `-start-step`: Bypasses completed steps and starts from the specified ID.
- `-list-steps`: Prints a numbered list of all available steps for each branch.
- `-version`: Allows manually providing the release version (e.g., "8.0.1")
  to ensure verification steps work when the detection step is skipped.

Refactors the release workflow logic to support conditional step execution
and implements a version discovery fallback that attempts to extract the
release version from recently merged PRs if not explicitly provided.
Updates the automated PR creation for spring-io/start.spring.io to
automatically append a "Signed-off-by: Name <email>" line to the PR body.
This satisfies the Developer Certificate of Origin (DCO) requirement for
upstream Spring projects.

The script now dynamically fetches the user's full name using the GitHub
CLI and their email address from the local git config (falling back to
the -email flag if unavailable).
@jinseopkim0 jinseopkim0 requested a review from a team as a code owner March 11, 2026 18:36
@jinseopkim0 jinseopkim0 requested a review from lqiu96 March 11, 2026 18:51
Base automatically changed from release-restart-step to main March 17, 2026 19:32
@jinseopkim0 jinseopkim0 merged commit b41442e into main Mar 17, 2026
51 of 56 checks passed
@jinseopkim0 jinseopkim0 deleted the release-initializr-dco branch March 17, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants