Skip to content

Disable force push #455

Description

@wewakekumar

Currently this action is using force push /usr/bin/git push origin HEAD:changeset-release/qa --force to push package.json and release changes but my organisation doesn't allow force push.

Is there any way to disable this force push?

Activity

  1. mehulkar commented on Feb 16, 2026

    @mehulkar

    Another reason to do this is that it would be really nice to retain the commits in a release branch over time. If a release PR is open for a while and needs additional work to get it mergeable/publishable, I want the ability to understand the history of that PR. Force push makes this impossible.

  2. added theissue type on May 15, 2026
  3. bluwy commented on Jun 26, 2026

    @bluwy
    Member

    I've looked into this but it's not very feasible to implement it. For example:

    1. If main adds a changeset, you need to merge first to sync so you can delete the changeset on version
    2. If main updates a changeset, you need to reset first (to prevent conflicts), merge to sync, and then you can delete the changeset on version.

    So this would always be generating at least 2-3 commits per update. While we can also try to collapse the commits, the merge commit makes this tricky and it's not really a good practice to mix unrelated changes inside a merge commit. Furthermore, it also mixes up the merge changes so it doesn't help with checking the git history either.

    As discussed on discord, we decided to not support this for now.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions