github-pullrequest-resource
github-pullrequest-resource copied to clipboard
Allow to limit by which PRs are triggered by either PR number(s) or branch format
I want to be able to create a pipeline for a specific PR while still getting the git hooks that this resource provides, but currently that isn't possible without also providing a git reference for that PR which is too limiting (via the version).
Either limiting by a pr number or based on a branch name or branch regex would be useful.
I've created a fork to test by filtering by a specific PR number which does exactly what I need, happy for more feedback on it: https://github.com/jtarchie/github-pullrequest-resource/compare/master...roryp2:master
Why not just create a pipeline for the branch in question, ignoring the PR aspect of it all together?
This is still useful for the PR hooks, but I guess it would be easier just to use the git resource and create a separate PR hook resource