pull
pull copied to clipboard
Label not creating when upsteam branch updates more than once within [Pull]PR opened period
https://github.com/michaeljin89757/BoTest/pull/3
https://github.com/michaeljin89757/BoTest/pull/2
As shown in pictures above, when there are updates happened within [Pull]PR opened period the pull bot did not create the pull label as expected.
Hi @michaeljin89757 thanks for the report!
The label should have been added as soon as the PR is created.
In the PR you shared, we can see that this update snippet did not work because the PR body was not updated and the tag also not added: https://github.com/wei/pull/blob/f5d246c69bfaf4a80d202b48f099120bcd6570be/lib/pull.js#L198-L205
The only thing I can think of is GitHub taking its time to calculate mergability state and causing updates to the PR to fail. I need to step through and see if this is the case and report to GitHub. Thanks again!
If anyone can help reproduce this with maybe a couple curls, that would help me tremendously!
The only thing I can think of is GitHub taking its time to calculate mergability state and causing updates to the PR to fail. Or it's not creating PR and not processing the rest of the commands