Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

Add "last_month" shortcut #105

@demisx

Description

@demisx

Similar to "this_month", please add "last_month" shortcut. It's often used to invoice for last month work. My understanding it would go into https://github.com/kriskbx/gitlab-time-tracker/blob/master/src/gtt-report.js#L128-L140 data shortcuts section:

if (program.last_month)
    config
        .set('from', moment().subtract(1, 'months').startOf('month'))
        .set('to', moment().subtract(1, 'months').endOf('month'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions