pull in the PR head reference
specify the branch to pull from when accepting a PR as-is.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -342,7 +342,7 @@ | ... | @@ -342,7 +342,7 @@ |
342 | { "get": "{{meta.urls.repo_api}}/pulls/{{prNum}}", "desc": "Get the PR information", "id": "pr" }, | 342 | { "get": "{{meta.urls.repo_api}}/pulls/{{prNum}}", "desc": "Get the PR information", "id": "pr" }, |
343 | { "get": "{{meta.urls.repo_api}}/pulls/{{prNum}}/commits", "desc": "Get the PR commits to access author info", "id": "prCommits" }, | 343 | { "get": "{{meta.urls.repo_api}}/pulls/{{prNum}}/commits", "desc": "Get the PR commits to access author info", "id": "prCommits" }, |
344 | [ "git checkout -b {{pr.user.login}}-{{pr.head.ref}} {{pr.base.ref}}", "Create a new branch for merging the changes" ], | 344 | [ "git checkout -b {{pr.user.login}}-{{pr.head.ref}} {{pr.base.ref}}", "Create a new branch for merging the changes" ], |
345 | [ "git pull {{pr.head.repo.ssh_url}}", "Merge the changes"], | 345 | [ "git pull {{pr.head.repo.ssh_url}} {{pr.head.ref}}", "Merge the changes"], |
346 | [ "git rebase {{pr.base.ref}}", "Rebase against the base branch"], | 346 | [ "git rebase {{pr.base.ref}}", "Rebase against the base branch"], |
347 | [ "git checkout {{pr.base.ref}}", "Check out the base branch" ], | 347 | [ "git checkout {{pr.base.ref}}", "Check out the base branch" ], |
348 | { "prompt": "text", "id": "line", "desc": "Describe this change in one line" }, | 348 | { "prompt": "text", "id": "line", "desc": "Describe this change in one line" }, | ... | ... |
-
Please register or sign in to post a comment