Improve tea time #319

Merged
lunny merged 6 commits from noerw/tea:better-times-are-coming into master 2020-12-23 04:58:36 +00:00
Member
  • improve doc string
  • adds --fields flag (and more fields to print: id, repo)
  • adds --mine flag to show times of login user across all repos
    • does someone have a better name?
  • move the filtering based on --from, --until to the API side, now that this feature is available since gitea 1.11`
- improve doc string - adds `--fields` flag (and more fields to print: `id`, `repo`) - adds `--mine` flag to show times of login user across all repos - does someone have a better name? - move the filtering based on `--from`, `--until` to the API side, now that this feature is available since gitea 1.11`
noerw added the
kind
enhancement
label 2020-12-21 19:55:23 +00:00
noerw added 5 commits 2020-12-21 19:55:23 +00:00
6543 reviewed 2020-12-21 22:04:13 +00:00
Dismissed
@ -48,0 +51,4 @@
&cli.BoolFlag{
Name: "mine",
Aliases: []string{"m"},
Usage: "Show Print the total duration at the end",
Owner

cp issue ;)

cp issue ;)
noerw marked this conversation as resolved
@ -62,2 +95,3 @@
} else if user == "" {
// get all tracked times on the repo
times, _, err = client.ListRepoTrackedTimes(ctx.Owner, ctx.Repo, gitea.ListTrackedTimesOptions{})
times, _, err = client.ListRepoTrackedTimes(ctx.Owner, ctx.Repo, opts)
Owner

add fields = []string{"created", "repo", "issue", "user", "duration"} ?

add `fields = []string{"created", "repo", "issue", "user", "duration"}` ?
noerw marked this conversation as resolved
noerw added 1 commit 2020-12-21 22:09:28 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
50c6006767
code review
6543 approved these changes 2020-12-21 22:16:13 +00:00
Dismissed
6543 added the
status/needs-reviews
label 2020-12-21 22:16:25 +00:00
6543 added this to the v0.7.0 milestone 2020-12-21 22:16:30 +00:00
noerw requested review from lunny 2020-12-22 17:25:44 +00:00
lunny approved these changes 2020-12-23 04:58:28 +00:00
Dismissed
lunny merged commit b5c670ebf8 into master 2020-12-23 04:58:36 +00:00
lunny referenced this issue from a commit 2020-12-23 04:58:37 +00:00
6543 deleted branch better-times-are-coming 2020-12-23 21:27:00 +00:00
Sign in to join this conversation.
No description provided.