We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter a pull request by source and target branches. For example do not consider pull requests with source branch "develop".
I have no idea what is the easiest way this can be implemented but I had a look at the code and it looks like the BitbucketPullRequest (https://javadoc.jenkins.io/plugin/cloudbees-bitbucket-branch-source/com/cloudbees/jenkins/plugins/bitbucket/api/BitbucketPullRequest.html) class exposes a getId() method to retrieve the pr id.
The Id can be used to retrieve the "fromRef" and "toRef" details from the bitbucket api, for Bitbucket server "https://bitbucket-server.com/rest/api/1.0/projects/{project}/repos/{repo}/pull-requests/{id}".
No response
The text was updated successfully, but these errors were encountered:
Add option to filter PR by origin branch jenkinsci#1
cc53ee1
Add option to filter PR by target branch jenkinsci#1
c481541
Merge pull request #3 from gab1one/add-pr-source-and-target-filtering
d346764
Add filtering by pullrequest source and target branch #1
@gdisanto, thank you for a good idea!
Thanks to changes by @gab1one, this was implemented. Thank you very much!
A new version has been released.
Sorry, something went wrong.
Nuh
No branches or pull requests
What feature do you want to see added?
Filter a pull request by source and target branches. For example do not consider pull requests with source branch "develop".
I have no idea what is the easiest way this can be implemented but I had a look at the code and it looks like the BitbucketPullRequest (https://javadoc.jenkins.io/plugin/cloudbees-bitbucket-branch-source/com/cloudbees/jenkins/plugins/bitbucket/api/BitbucketPullRequest.html) class exposes a getId() method to retrieve the pr id.
The Id can be used to retrieve the "fromRef" and "toRef" details from the bitbucket api, for Bitbucket server "https://bitbucket-server.com/rest/api/1.0/projects/{project}/repos/{repo}/pull-requests/{id}".
Upstream changes
No response
The text was updated successfully, but these errors were encountered: