did icon indicating copy to clipboard operation
did copied to clipboard

Adding format config option for GitHub.

Open junaruga opened this issue 5 years ago • 3 comments

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}"

junaruga avatar Dec 03 '18 15:12 junaruga

Thanks for the feedback. This sounds like a nice improvement! Patches are welcome.

psss avatar Dec 19 '18 11:12 psss

From quick check that would require changing all plugins to provide not only short text definition of item but also long one and url.

hrw avatar Aug 08 '22 14:08 hrw

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

SgtPooki avatar Sep 20 '22 17:09 SgtPooki