Feature Proposal: Match Branch when checking for PR
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.
That would be definitely a good improvement for this project. I don't yet know how easy it is too implement this, as I had a long brake from working on this project and the github api.
I'm currently also swamped at Work so I won't be able to look into it in the next days. But nice feature request. At some point in time I'd like to have this in the repo 👍🏼