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
feat: add option to choose between force and force-with-lease #1187
Conversation
527839b
to
e4c0013
Compare
Hi @leeopop Thanks for the effort to contribute. I would like to understand the problem better before deciding on the solution. Could you explain in detail exactly what is happening in this scenario:
|
I think my previous comment was unrelated. |
A temporal branch (default name:
When several opened & approved PRs are being merged, we mark the PRs by commenting PR3 may be merged as either
I'll prepare this in the following comment. |
@peter-evans While preparing the git example, I just realized that I put the "push" trigger to this plugin, and multiple workers tried to update the same branch. The automated build bot created 2 to 3 consequent pushes at the same time, thus the short time (10 to 20 sec) while this plugin is trying to update the branch, there were two plugins running at the same time. Force push does not seem to be a solution to this case. BTW, here is the example scenario I was trying to demonstrate.
Few days ago, I removed the "push" trigger and only using the cron trigger. However, I think this behavior should be documented in the front page. |
I am also running into this issue and a I am using a |
@stevelacey In my case, #1189 was the root cause and solved my problem. |
@leeopop I went for adjusting my workflow's concurrency settings instead: concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true Saves on action minutes too 🤘🏼 |
Glad you've both resolved the problem for your use cases. Both of these cases are actually confirmation that using |
When using this plugin with a build bot, the build bot (e.g. bors) creates another commit that references the PR branch.
This forbids updating the PR branch through
--force-with-lease
push option.This PR adds a boolean option to choose between
force-with-lease
andforce
.Before
After