Skip to content

ci: fix create-release commitish input (was target_commitish)#2866

Merged
piyalbasu merged 3 commits into
masterfrom
ci/forward-port-emergency-release
Jun 26, 2026
Merged

ci: fix create-release commitish input (was target_commitish)#2866
piyalbasu merged 3 commits into
masterfrom
ci/forward-port-emergency-release

Conversation

@piyalbasu

@piyalbasu piyalbasu commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Fixes a typo in the beta/production release workflows so the GitHub Release tag attaches to the commit that was actually built, instead of the input being silently ignored.

Implementation details (for agents)

actions/create-release@v1's input is commitish, not target_commitish. The wrong key was silently ignored (Unexpected input(s) 'target_commitish'), so the API defaulted the new tag to the repo's default branch (master) instead of steps.checkout_sha.outputs.sha.

  • submitBeta.yml — real fix: create-release@v1 creates the tag, so the wrong key put beta tags on master's HEAD rather than the built ref (observed with 5.42.1-beta.1, which had to be repointed manually).
  • submitProduction.yml — the tag is pre-created in an earlier Create and push git tag step, so commitish is effectively a no-op here; corrected for consistency so the two workflows match.

Only the actions/create-release@v1 steps were touched; no softprops/action-gh-release or REST usages (which legitimately use target_commitish).

Note: the forward-port automation that was originally part of this PR has been removed and parked on parked/forward-port-workflow — it needs a non-GITHUB_TOKEN identity (PAT/GitHub App) so the auto-opened PR triggers required status checks before it's viable.

Copilot AI review requested due to automatic review settings June 22, 2026 20:14
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

PR Preview build is ready: https://github.com/stellar/freighter/releases/tag/untagged-7d2e5a91f0ff65f8f7e9 (SDF collaborators only — install instructions in the release description)

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

Adds a GitHub Actions workflow that automatically opens (and reuses) a standing forward-port PR from emergency-release into master whenever emergency-release contains commits not yet in master, preventing hotfixes from being forgotten off the mainline.

Changes:

  • Add .github/workflows/forwardPort.yml to trigger on pushes to emergency-release.
  • Add a guard step to skip PR creation when there are no unported commits (git rev-list --count origin/master..HEAD).
  • Use gh pr create (with GITHUB_TOKEN) to open the forward-port PR, skipping if one is already open.

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

Comment thread .github/workflows/forwardPort.yml Outdated
@piyalbasu piyalbasu changed the title ci: auto-open forward-port PR from emergency-release to master ci: forward-port emergency-release to master + fix create-release commitish Jun 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd403a9250

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/forwardPort.yml Outdated
Comment thread .github/workflows/forwardPort.yml Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a0bdeb58a9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/forwardPort.yml Outdated
actions/create-release@v1's input is `commitish`, not `target_commitish`, so
the value was silently ignored ("Unexpected input(s) 'target_commitish'") and
release tags were created against the repo default branch (master) instead of
the built ref. This put 5.42.1-beta.1's tag on master's HEAD rather than the
emergency-release commit it was built from. Use the correct key so beta/prod
release tags point at the actual built commit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@piyalbasu piyalbasu force-pushed the ci/forward-port-emergency-release branch from 22505e5 to 99870ba Compare June 22, 2026 21:03
@piyalbasu piyalbasu changed the title ci: forward-port emergency-release to master + fix create-release commitish ci: fix create-release commitish input (was target_commitish) Jun 22, 2026
draft: false
prerelease: false
target_commitish: ${{ steps.checkout_sha.outputs.sha }}
commitish: ${{ steps.checkout_sha.outputs.sha }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this change is cosmetic and actually doesn't do anything - it's just to use the same param as submitBeta

@piyalbasu piyalbasu merged commit d4c969b into master Jun 26, 2026
11 checks passed
@piyalbasu piyalbasu deleted the ci/forward-port-emergency-release branch June 26, 2026 14:52
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