Closed andyleejordan closed 2 years ago
That's not something that the API allows for.
Creating a pull request and requesting a reviewer are two discreet API calls. PowerShellForGitHub (for the most part) mirrors the GitHub API.
The expected flow in your scenario when using PowerShellForGitHub would be to do something like this:
New-GitHubPullRequest @params | New-GitHubPullRequestReviewRequest -Reviewer $listOfReviewers
The unfortunate thing is that New-GitHubPullRequestReviewRequest
is still stuck in my development branch along with the rest of the work that completes the Pull Request API set: https://github.com/HowardWolosky/PowerShellForGitHub/blob/pullRequests/
All that work was done before a lot of the major updates to this module (like pipelining), and thus requires a significant rebase before it can be merged in, and I haven't had the time to sit down and do that rebase/update.
Ahh, got it. Thank you @HowardWolosky! I look forward to when that gets merged 😁
A description of your problem or question
When using
New-GitHubPullRequest
, I'd like to specify a list of GitHub users as requested reviewers. I found the following reference to this:https://github.com/microsoft/PowerShellForGitHub/blob/002363505f5738209f4b25d4d31c3d0434bc015e/GitHubPullRequests.ps1#L471-L477
But I cannot figure out how to actually specify that information to the cmdlet.
I'm trying to add these requested users to my code here:
Operating System
PowerShell Version
Module Version