Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally replace previous commits on the same branch #555

Open
tniessen opened this issue Apr 19, 2023 · 1 comment
Open

Optionally replace previous commits on the same branch #555

tniessen opened this issue Apr 19, 2023 · 1 comment

Comments

@tniessen
Copy link

We use this action in https://github.com/nodejs/node to create PRs with dependency updates. Sometimes, a new version of a dependency is released while the PR is still open, causing this action to (correctly) update the PR branch, title, and description. This happened, for example, in nodejs/node#46502 (except for updating the title and description, see nodejs/node#47621).

However, I haven't found a way of replacing previous commits on the branch instead of adding to them. In nodejs/node#46502, this meant that the action created one commit to update undici to 5.17.1 and then a separate commit to update undici to 5.18.0. It would be great to have an option to skip pulling in existing commits from the existing branch before force-pushing, i.e., in this case, it would have been great to be able to automatically skip the commit updating undici to 5.17.1 and to only keep the commit updating to 5.18.0.

@gr2m
Copy link
Owner

gr2m commented May 24, 2023

We use this action in https://github.com/nodejs/node to create PRs with dependency updates

woah cool! Thank you for letting me know!

I'd happily accept a pull request with a test. I can't work on it myself I'm afraid

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

No branches or pull requests

2 participants