jenkinsci / pipeline-github-plugin

Pipeline: GitHub
https://plugins.jenkins.io/pipeline-github/
MIT License
159 stars 73 forks source link

Error on creating createTeamReviewRequests #82

Open rangarb opened 4 years ago

rangarb commented 4 years ago

Hi there, When I try to add team review requests to a PR with code like:

pullRequest.createTeamReviewRequests(['johanek-team'])

It fails as below . I am using pipeline-github-2.5 with Jenkins https://www.jenkins.io/changelog-stable/#v2.204.3

groovy.lang.MissingMethodException: No signature of method: org.jenkinsci.plugins.pipeline.github.PullRequestGroovyObject.createTeamReviewRequests() is applicable for argument types: (java.util.ArrayList) values: [[johanek-team]]
Possible solutions: createReviewRequests(java.util.List)

Thanks for your plugin. Its very useful!