Simple template to create ticket-based bookmarks #6891
nachtjasmin
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
SICK!! I think I need to figure out a way to do regexes because I have JIRA style ticket IDs at work and conventionally these go at the start of commit messages, so I need to write a feature request about that. Filed: #6893 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At work, I'm using
Closes
trailers to link to JIRA tickets. Although there's nothing wrong with the default bookmarks, collaboration is usually easier with "proper" named bookmarks/branches.With the introduction of jj 0.31 and it's
git_push_bookmark
template, I can now easily name my bookmarks after the ticket they're closing.The template below is verifying whether there's exact one ticket linked to this change and if so, uses that together with a short suffix to distinguish multiple changes for the same ticket.
Excerpt from my
config.toml
.The template can optionally be shortened using aliases, but that's a task I'd leave up to the reader.
Beta Was this translation helpful? Give feedback.
All reactions