if I have 2 branches, one with a PR associated with it, and one not,
and I push the same commit to both branches in github.
expected - when the action executes one of the branches should detects a PR exists and return a number, the other one should not.
actual - both branches find the same associated PR and return the same associated PR number.
this makes using this scheme kinda dangerous, as side-effects - publishing, overwriting pre-release artifacts etc will occur from unexpected branches.
a convenience option to compare the head.label or ref with the current branch would be very helpful.
if I have 2 branches, one with a PR associated with it, and one not,
and I push the same commit to both branches in github.
expected - when the action executes one of the branches should detects a PR exists and return a number, the other one should not.
actual - both branches find the same associated PR and return the same associated PR number.
this makes using this scheme kinda dangerous, as side-effects - publishing, overwriting pre-release artifacts etc will occur from unexpected branches.
a convenience option to compare the head.label or ref with the current branch would be very helpful.