gh-get-current-pr icon indicating copy to clipboard operation
gh-get-current-pr copied to clipboard

Feature Proposal: Match Branch when checking for PR

Open jeacott1 opened this issue 5 years ago • 1 comments

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.

jeacott1 avatar Oct 14 '20 03:10 jeacott1

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 👍🏼

8BitJonny avatar May 08 '21 22:05 8BitJonny