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.

gtt fails if 'merge requests' feature is off #99

@daniviga

Description

@daniviga

We have some projects on a self-hosted GitLab instance that are mainly used for issue tracking and thus they have the 'merge requests' feature off.

Screenshot from 2019-09-27 11-19-12

In such cases gtt fails with an error:

gtt report sysadmin/infrastructure
🔍  Selected projects: sysadmin/infrastructure
🔍  Resolving "sysadmin/infrastructure"... ✓
📦  Fetching issues... ✓
📦  Fetching merge requests... ✗
Error: could not fetch merge requests.

Everything works fine with the feature enabled.

Would it be possible to just skip the collection of statistics from 'merge requests' when the feature has been disabled instead of making the entire process fail?

We are running gtt 1.7.40 on Linux.
Many thanks for your work!

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