did
did copied to clipboard
Adding format config option for GitHub.
Thanks for the great product.
I would like to customize the output format for github, because while below is a default output for github,
(venv2) $ did month --since=2018-11-01
Status report for given date range (2018-11-01 to 2018-12-03).
...
* Issues created on github: 16
* junaruga/rpm-py-installer#166 - Travis: Add notification email with...
...
* Pull requests created on github: 21
* trinityrnaseq/trinityrnaseq#608 - Add .pyc files to .gitignore.
I would prefer below format with clickable URL and full title.
* Issues created on github: 16
...
* Travis: Add notification email with secure way
https://github.com/junaruga/rpm-py-installer/issues/166
* ...
* Pull requests created on github: 21
* Add .pyc files to .gitignore.
https://github.com/trinityrnaseq/trinityrnaseq/pull/608
How about adding format item like this, (default is {owner}/{project}#{issue or pull-request id} - {title} like current behavior)?
[github]
type = github
url = https://api.github.com/
login = junaruga
format = "{title}\n {url}"
Thanks for the feedback. This sounds like a nice improvement! Patches are welcome.
From quick check that would require changing all plugins to provide not only short text definition of item but also long one and url.
could we use a --github-urls CLI option and then return the URL instead of the text?
edit: that wouldn't solve the request to support a format option, but it could provide a solution for getting URLs which would work for my needs