Skip to content

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

Merged
elizabethhealy merged 7 commits into
mainfrom
fix-update-platform-branch-workflow
Mar 3, 2026
Merged

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

Conversation

@elizabethhealy

@elizabethhealy elizabethhealy commented Mar 3, 2026

Copy link
Copy Markdown
Member

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
Copy Markdown
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

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@elizabethhealy

Copy link
Copy Markdown
Member Author

/gemini review

@elizabethhealy

Copy link
Copy Markdown
Member Author

/gemini summary

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread .github/workflows/update-platform-branch.yaml
@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

X-Test Failure Report

@sonarqubecloud

sonarqubecloud Bot commented Mar 3, 2026

Copy link
Copy Markdown

@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

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

@elizabethhealy
elizabethhealy merged commit 9c0136d into main Mar 3, 2026
18 checks passed
@elizabethhealy
elizabethhealy deleted the fix-update-platform-branch-workflow branch March 3, 2026 15:24
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