Skip to content
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

fix: --draft flag works when creating a PR with rebase #201

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

ClairePhi
Copy link
Collaborator

@ClairePhi ClairePhi commented Nov 22, 2024

When creating a PR with a rebase (e.g. opp pr -i or opp pr --base xxx), the --draft flag doesn't work.
This is because the value of --draft was not taken from the previous Args when building the new Args.

This PR makes a deep copy of the args in order to make sure that the previous Args are taken into account.

@ClairePhi ClairePhi force-pushed the ClairePhi/pr/201 branch 2 times, most recently from 6a3f6a7 to e13720d Compare November 22, 2024 21:29
@ClairePhi ClairePhi changed the title fix --draft flag when creating a PR with rebase fix: --draft flag works when creating a PR with rebase Nov 22, 2024
@ClairePhi ClairePhi marked this pull request as ready for review November 22, 2024 21:32
@ClairePhi ClairePhi merged commit 94b5dd1 into main Nov 24, 2024
1 check passed
@ClairePhi ClairePhi deleted the ClairePhi/pr/201 branch November 24, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants