util: sync fork with upstream before Initializr PR creation#4372
Merged
jinseopkim0 merged 6 commits intomainfrom Mar 17, 2026
Merged
util: sync fork with upstream before Initializr PR creation#4372jinseopkim0 merged 6 commits intomainfrom
jinseopkim0 merged 6 commits intomainfrom
Conversation
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).
Updates the Spring Initializr PR workflow to ensure the user's fork is fully synchronized with the upstream repository before creating the release branch. - Adds `gh repo sync` to update the remote fork on GitHub. - Adds `git pull origin main` to ensure the local temporary clone is up to date with the freshly synced remote. - Moves GitHub user information retrieval to the start of the function to support the synchronization step.
lqiu96
approved these changes
Mar 11, 2026
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.
This PR updates the automated Spring Initializr PR workflow to ensure that the user's fork is fully synchronized with the upstream repository before creating the release branch.
Previously, if a release manager had an old fork of
spring-io/start.spring.iositting on their GitHub account, the script could potentially branch off of a stale commit. By forcing a sync, the script guarantees that the automated PR is always based on the latest upstreammainbranch.