Skip to content

ci: propose program upgrades from any commit, tag or branch - #273

Merged
GabrielePicco merged 1 commit into
mainfrom
ci/upgrade-ref-input-main
Nov 3, 2026
Merged

GabrielePicco merged 1 commit into
mainfrom
ci/upgrade-ref-input-main

Conversation

@GabrielePicco

Copy link
Copy Markdown
Contributor

Adds an optional ref input to Propose Program Upgrade so a release tag, commit SHA or branch of the program can be proposed without first switching the ref the workflow runs from. Same change as magicblock-labs/ephemeral-spl-token#159.

Default (input empty): unchanged. actions/checkout treats an empty ref as unset and checks out the commit the run was dispatched on, exactly as today.

With ref set: the checkout uses it. The shared Squads action builds that worktree and records git rev-parse HEAD, so the buffer, the otter-verify PDA and the job summary all reflect the chosen ref. SHAs must be the full 40 characters; actions/checkout rejects short ones.

Run it from the Actions UI, or:

gh workflow run propose-program-upgrade.yml -f cluster=devnet -f dry_run=true -f ref=<sha|tag|branch>

Notes

  • The environment's deployment-branch rule still gates the ref the run is dispatched on, not ref. Approvers keep checking the commit shown in the job summary.
  • The shared action needs no change at the pinned commit: it never resolves a ref itself, and its only use of github.sha is the proposal-name default, which this workflow overrides.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1725888 and fca4e66.

Files selected for processing: 2
  • .github/workflows/propose-program-upgrade.yml
  • README.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T08:57:46.267874Z fca4e66 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@GabrielePicco
GabrielePicco merged commit e616709 into main Nov 3, 2026
8 checks passed
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.

1 participant