feat: add timelog command for time tracking

Description

Adds glab timelog list, which reports the time logged on issues and merge requests for a project or a group over a date range. This is step 3 of #969 (closed).

  • Scope: the current project, -R for another project, or -g for a group and its subgroups.
  • Filters: --start-date, --end-date (inclusive, YYYY-MM-DD), and --user <username> or --user @me.
  • Text output lists entries newest first and ends with the total. -F json returns the raw entries.
  • Uses GitLab's time tracking units (1d = 8h, 1w = 5d, 1mo = 4w). Time that was subtracted shows as negative and lowers the total.

Resolves #969 (closed) (as the final step per the triage comment)

How has this been tested?

glab timelog list -R gitlab-org/cli
glab timelog list -g gitlab-org --user @me --start-date 2026-10-01

Merge request reports

Loading
Loading