This is a bit trickier than expected, but it basically encapsulates the desired logic; it checks to see if we're on a ref that we would want to release for. There seems to be no good way to detect PRs; the previous code was a sham I copy-pasted without validating.
This is a bit trickier than expected, but it basically encapsulates the desired logic; it checks to see if we're on a ref that we would want to release for. There seems to be no good way to detect PRs; the previous code was a sham I copy-pasted without validating.
See it in action here: