Skip to content

chore(ci): Fix update-platform-branch to properly set platform.branch and update PR details #342

Open
elizabethhealy wants to merge 7 commits intomainfrom
fix-update-platform-branch-workflow
Open

chore(ci): Fix update-platform-branch to properly set platform.branch and update PR details #342
elizabethhealy wants to merge 7 commits intomainfrom
fix-update-platform-branch-workflow

Conversation

@elizabethhealy
Copy link
Member

@elizabethhealy elizabethhealy commented Mar 3, 2026

Updates the CI workflow that syncs platform.branch by ensuring PR bodies include protocol release notes and that existing PRs get updated instead of only creating new ones. Properly set the platform.branch.

Changes:
Add a step to fetch protocol release notes and write a pr_body.txt.
Add a step to edit an existing PR’s title/body when one already exists.
Move PR body generation earlier so both “edit PR” and “create PR” share it.
Fix how were setting the platform.branch

#308

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

X-Test Failure Report

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

X-Test Failure Report

@elizabethhealy
Copy link
Member Author

/gemini review

@elizabethhealy
Copy link
Member Author

/gemini summary

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI workflow that syncs platform.branch by ensuring PR bodies include protocol release notes and that existing PRs get updated instead of only creating new ones.

Changes:

  • Add a step to fetch protocol release notes and write a pr_body.txt.
  • Add a step to edit an existing PR’s title/body when one already exists.
  • Move PR body generation earlier so both “edit PR” and “create PR” share it.
Comments suppressed due to low confidence (1)

.github/workflows/update-platform-branch.yaml:150

  • LATEST_TAG is sometimes a full tag like protocol/go/v0.3.1 (per the workflow’s own testing comment / manual input), but this step assumes it’s only the version suffix and prepends protocol/go/ again. That results in an invalid tag (protocol/go/protocol/go/v0.3.1) and also produces an incorrect release URL in the PR body. Consider normalizing to a single canonical variable (e.g., PROTOCOL_TAG always protocol/go/...) and derive the value consistently for both auto-discovery and manual input before using it here.
          RELEASE_NOTES=$(gh release view protocol/go/$LATEST_TAG --repo opentdf/platform --json body --jq '.body')
          cat <<EOF > pr_body.txt
          This PR updates the platform.branch property in all pom.xml files to the new tag or branch: $LATEST_TAG.

          See the release: https://github.com/opentdf/platform/releases/tag/protocol%2Fgo%2F$LATEST_TAG

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

X-Test Failure Report

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

X-Test Failure Report

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

X-Test Failure Report

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

@elizabethhealy elizabethhealy changed the title chore(ci): fix the update platform branch workflow chore(ci): Fix update platform branch workflow to properly set platform.branch and update PR details if they exist Mar 3, 2026
@elizabethhealy elizabethhealy changed the title chore(ci): Fix update platform branch workflow to properly set platform.branch and update PR details if they exist chore(ci): Fix update-platform-branch to properly set platform.branch and update PR details Mar 3, 2026
@elizabethhealy elizabethhealy marked this pull request as ready for review March 3, 2026 04:40
@elizabethhealy elizabethhealy requested review from a team as code owners March 3, 2026 04:40
@github-actions
Copy link

github-actions bot commented Mar 3, 2026

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