Skip to content

commitMode: github-api glitches when opening/closing pull requests #550

Description

@furcan

Context

Presumably related to => #487 + #474

Hello, firstly thanks for this great tool. 🙇

I have an issue that started to occur when I switched to github-api for commit mode.
This switch is due to:

And,
The github-api mode closes and reopens the pull-request, rather then updating the current PRs (git-cli)

  • By my lookup on this repos' issues/PRs, this is mentioned as an expected scenario for github-api.

Issue

Scenario 1:

  • There was an opened PR, A merged happened to main, workflows runs(changesets-action), identifies the existing PR correctly, logs as updating that PR, completes the workflow ✅
  • The open PR gets a push from bot, then closes the PR ❓ ✅
  • And if the merge on main does not contain a new changeset entry, PRs never opens again ❌
    • did not see opened again
  • just rerun changesets-actions workflows again, closed PR opened correctly ✅

Scenario 1-A

  • since the PR closed but branch remains in GitHub
  • another merged happened to main, with our without a new changeset entry
  • workflows runs(changesets-action), reopens that closed PR again ✅
    • since workflow-dispatch manual run will do the same

Scenario2:

  • There was an opened PR, A merged happened to main, workflows runs(changesets-action), identifies the existing PR correctly, logs as updating that PR, completes the workflow ✅
  • The open PR gets a push(latest main) from bot, then closes the PR ✅
  • The merge on main was containing a new changeset entry ℹ️
  • The bot reopens that PR again, with new changeset entry also considered ✅ ❌
    • some workflows opens, some not
  • just rerun changesets-actions workflows again, closed PR opened correctly ✅

Additional Info

Presumably does not matter but its Cloud Enterprise with Data Residency => https://github.com/enterprise/data-residency

  • Which means, GH API is not api.github.com, it is api.XXXXX.ghe.com, in case that info is needed
  • Version in use => changesets/action@v1

Activity

  1. vietdaoxuan595-star commented on Jan 15, 2026

    @vietdaoxuan595-star

    Please give me your Telegram ID so we can discuss some work-related matters.

  2. bluwy commented on Jun 14, 2026

    @bluwy
    Member

    This should be fixed along with #645

  3. furcan commented on Jun 17, 2026

    @furcan
    Author

    yes, so far with one workflow observation-test with latest action version,

    its updating the founded/open PR as force-pushed, instead of closing and opening again. which is a great win.

    as a feedback,
    its just not creating a notification/noise etc that you don't know its updated. (my test was same semver incremental, lets say patch was there, another patch comes, I did not test it with different semvers but presumably the same, max the pr title would be updated with different semvers)

    This is a code-ownership/org setup related thing, please ignore

    Thank you for taking care of this issue 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions