Skip to content

Release workflow: Use PR squash-merge with GITHUB_TOKEN for branch protection compatibility#1491

Open
Copilot wants to merge 2 commits intomainfrom
copilot/fix-issue-1490
Open

Release workflow: Use PR squash-merge with GITHUB_TOKEN for branch protection compatibility#1491
Copilot wants to merge 2 commits intomainfrom
copilot/fix-issue-1490

Conversation

Copy link

Copilot AI commented Feb 7, 2026

The release workflow attempted to fast-forward merge and push directly to main using JRELEASER_GITHUB_TOKEN, bypassing branch protection rules that require PR approval.

Changes

  • Checkout token: Changed from JRELEASER_GITHUB_TOKEN to GITHUB_TOKEN (line 42)

    • Enables PR approval by team members
  • PR creation: Replaced fast-forward merge + retry push loop with single PR creation step (lines 170-178)

    • Title: Release version X.Y.Z (was Release $BRANCH_NAME ff-merge)
    • Body: Explicitly states "This PR should be squash-merged into main"
    • Uses GITHUB_TOKEN for API authorization
  • JRELEASER_GITHUB_TOKEN remains in JReleaser step for Maven Central publishing

The workflow now creates an approvable PR that respects branch protection when squash-merged.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…fast-forward

Co-authored-by: LogFlames <36220731+LogFlames@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue #1490 Release workflow: Use PR squash-merge with GITHUB_TOKEN for branch protection compatibility Feb 7, 2026
Copilot AI requested a review from LogFlames February 7, 2026 01:39
@LogFlames
Copy link
Member

@algomaster99 for this new workflow, could you enable github actions to create PRs? The option is grayed out for me.

Under Actions > General:

IMG_0843

@LogFlames LogFlames marked this pull request as ready for review February 7, 2026 01:46
@algomaster99
Copy link
Member

It was greyed out because we control these configuration on a organization level. I enabled in our organization settings.

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.

3 participants