Commit 863937d
committed
fix: fetch and checkout draft pr branch directly
When the pull request is created in draft mode because of conflicts, the
suggestion did not fetch the branch of the opened draft pull request.
This meant that the instructions fail when switching, and the commits
are cherry-picked on the wrong branch.
Instead, we can fetch the branchname immediately. We no longer need to
fetch target either. And while we're at it, we can also simply checkout
the branch immediately, so we don't have to switch to it separately.1 parent 7d390fd commit 863937d
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | | - | |
| 617 | + | |
| 618 | + | |
619 | 619 | | |
620 | | - | |
621 | 620 | | |
622 | 621 | | |
623 | 622 | | |
| |||
0 commit comments