GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(release): wait for GitHub to show the pushed commit before the merge by dschach · Pull Request #401 · dschach/salesforce-trigger-framework

Conversation

@dschach

@dschach dschach commented Nov 11, 2026

Copy link
Copy Markdown
Owner

This pull request fixes the first real run of the Release workflow. The run built the beta 2.2.0.2 and pushed its ids to the release pull request. For some seconds after the push, GitHub still reported the old head of the pull request, and the script took that as a rewritten branch and stopped before the merge.

Changes

  • scripts/release.mjs: while GitHub still reports the old head after the push, the script waits. It stops only when the head is a third commit, which means that Release Please rewrote the branch.

  • scripts/release.mjs: when the release branch already has package ids that belong to its code, for example after a run that stopped after its push, the script builds no new beta and goes on to the checks and the merge.

  • CONTRIBUTING: the Release section says that a run again after a stop uses the ids on the branch.

Behavior notes

The merge of this pull request makes Release Please rewrite the release branch, which removes the commit with the ids of 2.2.0.2. So the next run of the Release workflow builds a new beta, 2.2.0.3. The beta 2.2.0.2 stays unused.

Test plan

  • A simulation with a local remote, a fake gh, and a fake sf ran the script 4 times. In run 1, the fake gh reported the old head for 2 polls; the script waited and then merged with --match-head-commit on the pushed commit. Runs 2 and 3 found valid ids on the branch, built no beta, and merged. In run 4, the fake gh reported a third head; the script stopped without a merge and went back to main with a clean tree.

  • actionlint, the Prettier check, the sample code check, and Code Analyzer pass.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Claude AI @claude
fix(release): wait for GitHub to show the pushed commit before the merge
6f27f13
For some seconds after the release script pushed the package ids, GitHub still reported the old head of the release pull request. The script took that as a rewritten branch and stopped before the merge. It now waits while GitHub reports the old head, and it stops only for a third commit. A run on a release branch that already has ids that belong to its code builds no new beta and goes on to the checks and the merge.

Co-Authored-By: Claude <[email protected]>
@dschach
dschach merged commit 5e57e66 into main Nov 11, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dschach
dschach deleted the fix/release-head-wait branch November 11, 2026 08:51
@dschach dschach mentioned this pull request Nov 11, 2026
chore(main): release 2.2.0 #399
Merged
dschach added a commit that referenced this pull request Nov 11, 2026
@dschach
chore(main): release 2.2.0 (#399)
900898f
🤖 I have created a release *beep* *boop*
---


## [2.2.0](v2.1.0...v2.2.0) (2026-11-11)


### Features

* **package:** Release from a button with a beta package version ([#400](#400)) ([04e203a](04e203a))


### Bug Fixes

* **release:** Wait for GitHub to show the pushed commit before the merge ([#401](#401)) ([5e57e66](5e57e66))


### Documentation

* **handler:** Warn that a partial-success retry uses loop limit runs ([#398](#398)) ([8f310c2](8f310c2))


### Build System

* **package:** Create beta package versions and write their ids ([04e203a](04e203a))
* **package:** Name the unlocked package in sfdx-project.json ([04e203a](04e203a))


### Continuous Integration

* **package:** Check the package ids and promote the beta after a release ([04e203a](04e203a))
* **release:** Release from a button that merges the release pull request ([04e203a](04e203a))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dschach
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.