gh pr create
- is it possible?
#6279
-
Hi! Love jj! With git, I had a little |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Can you look at these to see if your problem is addressed? |
Beta Was this translation helpful? Give feedback.
-
You can use the GitHub CLI per our docs here https://jj-vcs.github.io/jj/v0.28.2/github/#using-github-cli |
Beta Was this translation helpful? Give feedback.
-
If
|
Beta Was this translation helpful? Give feedback.
-
I have the following alias in my aliases:
pc: "!jj git push -c \"all:$1\"; for c in $(jj log --no-graph -r \"$1 & mutable()\" -T \"change_id ++ '\n'\"); do echo creating PR for $c; gh pr create --head $(jj bookmark list -r $c -T name) --base $(jj bookmark list -r \"heads(::$c- & bookmarks())\" -T name) --fill; done" You run |
Beta Was this translation helpful? Give feedback.
I have the following alias in my
.config/gh/config.yml
file:You run
gh pc <revset>
and it will usegit push -c
to auto push branches for all of your changes in that revset, and for each it will create a PR whose base is the previous bookmark. You might want to drop the base logic if you're not interested in that