-
Notifications
You must be signed in to change notification settings - Fork 216
Listing with ability to specify the date formatting string #625
Comments
Hey @bokchan, right now we only have to views: detailed and non detailed. Can you give some examples of what you are looking to print out and not print out? |
Hi @protoEvangelion The question came up because I wanted to generate a changelog from a milestone which lists the datetime as relative > gh is -M 40 -u bokchan -S closed
Listing closed issues on bokchan/myrepo
#337 One patch @bokchan (a day ago)
.....
#333 Last patch @bokchan (a month ago) The order/formatting of > gh is -M 40 -u bokchan -S closed --date-format%Y-%m-%d
Listing closed issues on bokchan/myrepo
#337 One patch @bokchan (2019-02-10)
.....
#333 Last patch @bokchan (2018-01-10) |
Thanks for the clarification. So we use moment for our date parsing. Would something like this work for you? https://momentjs.com/docs/#/displaying/format/ |
If you mean the formatting capabilities offered by I will change the title and description to make the issue clearer |
…ave listing functionality re node-gh#625
@bokchan I just added the ability to pass in a formatter like It should also now work for all other list based cmds. You can check it out by forking, cloning, then running:
and following instructions here to build and link it. Let me know if that achieves what you are looking for 😉 |
…ve listing functionality re node-gh#625
…ve listing functionality re #625
# [1.15.0](v1.14.1...v1.15.0) (2019-02-13) ### Features * **list based cmds:** enable moment date formatting for cmds that have listing functionality ([d9d652e](d9d652e)), closes [#625](#625)
🎉 This PR is included in version 1.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
In the list views the date is formatted as relative i.e.:
The order/formatting of
PR number
,title
, andgithub username
can be manipulated withsed
, but it could be really nice to be able to specify the formatting of the date, .e.gThe text was updated successfully, but these errors were encountered: