Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
daniviga opened this issue Sep 27, 2019 · 3 comments
Open

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

daniviga opened this issue Sep 27, 2019 · 3 comments

Comments

@daniviga
Copy link

daniviga commented Sep 27, 2019

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!

@qelphybox
Copy link

@daniviga try

gtt report --query=issues sysadmin/infrastructure

it will skip merge requests

@HacKanCuBa
Copy link

the same happens for me. It should just skip or check before attempting to get MRs if they are enabled.

@johnjaylward
Copy link

Yes, it would be nice if this could be dynamic since when you are running against a "group" you could have a mix of projects with the features enabled or disabled. Having a "soft fail" if a project is missing issues, or missing merge requests would be optimal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants