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 a dry-run flag to gh pr create
#8375
Comments
Sure, I'd like to see what parameters would be used if the PR was created.
If I use the same output from https://github.com/cli/cli/pull/5098/files#diff-e15aeab65f4100441b2e8a9a3cdb63ebcaf971bb0b0c839cd790bb752a3ec35eR261 Given a branch that has already been pushed to the origin
When `pr create --draft --fill-first --body 'my super-body' --dry-run --label external --label core --reviewer v1v`
Then the below output will be printed
Would have created a Pull Request with:
title: feat: support dry-run in gh pr create
draft: true
labels: [external core]
reviewers: [v1v]
--
my super-body I just made a quick PR to support the above, see #8376 |
After thinking a bit more about this idea, I'd like to propose a similar output to the one when running
There are a few fields that won't be available, but overall it might help with having a similar UI experience. What do you think? |
I second this feature! |
I've just labelled this |
Describe the feature or problem you’d like to solve
I can test my scripts without the need to use echos by flags.
Proposed solution
How will it benefit CLI and its users?
Introducing a --dry-run flag to
gh pr create
will help people test their workflows/scripts without the need to do echos.Additional context
#1145 suggested raising a PR for this particular case.
The text was updated successfully, but these errors were encountered: