jj: FR: Automatic bug reporting with `jj rage`.
Is your feature request related to a problem? Please describe.
Add a jj rage command which copies an anonymized state of the current repo, zips it and allows the user to write a bug report which then creates a new issue in the corresponding issuetracker.
Additional context
I like the term rage for bug reporting.
I’m pretty sure there exists some crate for it already on crates.io.
I found this while digging through some older Discord conversations.
About this issue
- Original URL
- State: open
- Created 4 months ago
- Reactions: 1
- Comments: 15 (3 by maintainers)
I’m opposed to the name “rage” as it’s not self-descriptive at all.
git-branchless bug-reportincludes this:See https://github.com/arxanas/git-branchless/blob/3faa0744cf0b0c7c2fe2bf20e5f441776f21c6dd/git-branchless/tests/test_bug_report.rs for an example.
On several occasions, people have manually redacted information from their smartlogs to discuss something, and I wish I could have told them ahead of time that there’s a built-in function for that 🤣.
I shared this with a brony friend of mine, and he said that that picture is from a scene where that character is saying “I just don’t know what went wrong”, and I’m very displeased with how on point that makes it.
We can borrow https://github.com/erkin/ponysay.
Update: I also found https://github.com/maandree/util-say for custom pictures.
jj sad, at least as an alias to something serious likejj bug-reportsounds hilarious :)I agree with calling about it
jj bugreport, but I still think the more important question to answer is this:I honestly quite like
jj rageas a name; I thought it was quite cute in both sapling and buck2. I think being a little cheeky is just fine for reporting bugs. 😃 I would normally just considerrageto be part of other “helpful commands” likedocsorhelp, not something underdebug. Unfortunately, because Clap can’t categorize commands in the help output, you end up needing to use subcommands for everything to get the grouping another way…I’m not even sure we want to try zipping up the repository, but generally speaking these tools would talk to a proxy server that would relay the bug to GitHub via OAuth if we wanted anonymized reports; alternatively we could support filing bugs with GitHub’s API itself assuming that the user has a proper access token on their machine, normally if they use the
ghtool to login then it’s available in something like$HOME/.config/gh/; other tools piggyback onghin this way too, like Sapling. So that would allow users to submit bugs under their own account.For context, Google currently has
hg bugreportand Meta hashg rageAFAIK (I assume that’s where Philip got the name from).jj debug reportseems reasonable (hg doesn’t have support for nested subcommands).