-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
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
Add confirmation prompts and examples for Remove- functions #174
Add confirmation prompts and examples for Remove- functions #174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for this, @themilanfan!
Really minor feedback to address, and then I'll be happy to merge this in. Thanks again, and welcome to the project!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, just realized that you didn't add the necessary ShouldProcess
commands to have any impact here.
See
PowerShellForGitHub/GitHubProjects.ps1
Line 496 in d279f1c
if ($PSCmdlet.ShouldProcess($project, "Remove project")) |
You probably need to update a bunch of tests too in order for them to pass (adding -Confirm:$false
to those calls), because once this is done, all of the existing tests that make use of Remove-*
commands will fail because they'll hang waiting for user confirmation.
…pt for confirmation Also re-addded needed whitespaces
Added line-space in example
@HowardWolosky thank you for the feedback, I've just committed the changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed in new commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed review in commits
@HowardWolosky I'm not sure what's happening with the check, I reviewed all the changes you requested and thought it would resume |
@themilanfan - Thanks for the update. Will review the changes this weekend. As for the checks, ignore them for now. I've been running into issues with the tests properly running in PR CI builds, so I still need to verify them locally before merging. I'll get to fixing the PR CI build at some point. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this looks like a great update, thanks!
One minor documentation suggestion in this review.
Additionally, more tests have been added since you authored this PR. Would you be willing to refresh this PR with the latest changes from master, and incorporate any remaining -Confirm:$false
parameters into any new instances of Remove-*
methods being called in the tests?
Thanks so much!
Co-authored-by: Howard Wolosky <[email protected]>
Hi @HowardWolosky, I've added the remaining -Confirm:$false as well as updated the documentation and fixed another small issue in GitHubLabels.tests.ps1 as well. I will also wait for this to merge so that for issue #176 I don't miss any Confirm:$false there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes reviewed
Removed them 😄 |
It looks like some conflicts came in as a result of some of the recent commits as I've been trying to get the CI to run clean on all platforms. Can you please address the conflicts? Then I'll give it a run through the CI and get it committed....Thanks! |
Resolved conflicts 😄 |
/azp run PowerShellForGitHub-CI |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ready to go. Thanks so much!
Fixes #171