psss / did

What did you do last week, month, year?
https://did.readthedocs.io/
GNU General Public License v2.0
247 stars 105 forks source link

Add support for `markdown` format output #315

Closed sandrobonazzola closed 1 year ago

sandrobonazzola commented 1 year ago

Add markdown format output and enable it for bugzilla, github and gitlab.

psss commented 1 year ago

One more thing: It seems that GitHub pull requests are created with url leading to issues:

did --format markdown --width 0 --github-pull-requests-created

The output looks like this:

Status report for the week 36 (2023-09-04 to 2023-09-10)

 Petr Šplíchal <psplicha@redhat.com>

GitHub automatically redirects these to the proper url, so it's not that important to get fixed, but probably would be a bit nicer/cleaner. @sandrobonazzola, what do you think?

sandrobonazzola commented 1 year ago

GitHub automatically redirects these to the proper url, so it's not that important to get fixed, but probably would be a bit nicer/cleaner. @sandrobonazzola, what do you think?

I've kind of cheated there to keep the code simpler but yes, some more parsing can be done to get avoid the redirect. I would consider doing it in another PR as enhancement when I'll have some more time to dedicate to this.

sandrobonazzola commented 1 year ago

Nevermind, found a more useful way to do it, pushing a new commit

psss commented 1 year ago

Nevermind, found a more useful way to do it, pushing a new commit

Perfect, thanks!

sandrobonazzola commented 1 year ago

Thanks for addressing all comments, added just a tiny adjustment in 2c505c0.

LGTM, thanks

psss commented 1 year ago

For some reason, the --format option is incorrectly rendered in the docs:

image

Turning off smartquotes in 273d33c should fix it.