turbot/gitlab_insights

Query: open_merge_request_90_365_days_count

Usage

powerpipe query gitlab_insights.query.open_merge_request_90_365_days_count

SQL

select
'90-365 Days' 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 between symmetric now() - '90 days' :: interval and now() - '365 days' :: interval;

Dashboards

The query is used in the dashboards: