turbot/steampipe-mod-gitlab-insights

Dashboard: GitLab Open Merge Request Age Report

This report answers the following questions:

  • How old are the open merge requests on my projects?
This dashboard contains 6 cards and 1 table.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-gitlab-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select GitLab Open Merge Request Age Report dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run gitlab_insights.dashboard.merge_request_open_age_report --share

Queries

This dashboard uses the the following queries:
select
'> 1 Year' as label,
count(m.*) as value
from
gitlab_my_project p
join gitlab_merge_request m on m.project_id = p.id
where
m.state = 'opened'
and m.created_at <= now() - '1 year' :: interval;

Tags