turbot/gitlab_insights

Query: open_merge_request_1_year_count

Usage

powerpipe query gitlab_insights.query.open_merge_request_1_year_count

SQL

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;

Dashboards

The query is used in the dashboards: