turbot/gitlab_insights

Query: open_merge_request_30_days_count

Usage

powerpipe query gitlab_insights.query.open_merge_request_30_days_count

SQL

select
'1-30 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() - '1 days' :: interval and now() - '30 days' :: interval;

Dashboards

The query is used in the dashboards: