This message was deleted.
# how-do-i
s
This message was deleted.
n
Copy code
$(git cat-file -p refs/branch-metadata/$(git symbolic-ref --short HEAD) | jq -r '.parentBranchName')
I'm pretty sure I copied that from one of @Jacob Gold’s reply to a similar question
šŸ‘ 1
j
where in the body do you want the commits?
a
@Nick S Thanks! I searched and couldn't find any previous discussions on this. I guess this is reaching into Graphite's metadata using Git 🤯 Neat! @Jacob Gold We have a "## Description" header at the top, so I'd ideally want them right below that. I'm fine wrapping Graphite to do this! We could also just remove that header at the top of the template, but I am trying to avoid disrupting my coworkers' workflows.
Here is my silly wrapper of
gt stack submit
šŸ˜† Uses my gh-pr-body-commits GitHub CLI extension, which makes for easy updates to the PR description later on. It has another feature that I like: it opens the pull request after creation (I use the GitHub web UI, hence
gh pr view
); I keep all of my stacks open my browser in labelled tap groups.