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

spr diff vs spr diff --draft #148

Closed
Coobaha opened this issue Oct 31, 2022 · 4 comments
Closed

spr diff vs spr diff --draft #148

Coobaha opened this issue Oct 31, 2022 · 4 comments

Comments

@Coobaha
Copy link

Coobaha commented Oct 31, 2022

Hi, I've noticed one edge case (or at least behavior that I think should be different):

  1. spr diff
  2. convert PR to draft from GitHub UI
  3. git amend
  4. spr diff

In this case, I've got a new PR created. Should the already existing draft PR be re-used?

@Coobaha Coobaha closed this as completed Nov 9, 2022
@Coobaha
Copy link
Author

Coobaha commented Nov 9, 2022

Not sure if my repro here is correct. Doing these steps works fine for me. Something else probably resulted in a new PR, closing for now.

@Coobaha
Copy link
Author

Coobaha commented Nov 10, 2022

Ok found the way where flow fails.
if PR was manually converted to Draft from UI, next call to spr diff will create a duplicate

@Coobaha Coobaha reopened this Nov 10, 2022
@sven-of-cord
Copy link
Contributor

That still shouldn't happen though. The sole criterion whether spr creates a new PR or updates an existing one, is whether the commit message has a Pull Request: section in it with a link to the PR (within the given GitHub repository).

@Coobaha
Copy link
Author

Coobaha commented Dec 19, 2022

I think you are correct, @sven-of-cord. I think it was due to me doing a silly amends that had no link to existing PR.

@Coobaha Coobaha closed this as completed Dec 19, 2022
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

No branches or pull requests

2 participants