turbot/github_insights

Query: open_pull_request_30_days_count

Usage

powerpipe query github_insights.query.open_pull_request_30_days_count

SQL

select
'1-30 Days' as label,
count(p.*) as value
from
github_my_repository r
join github_pull_request p on p.repository_full_name = r.name_with_owner
where
p.state = 'OPEN'
and p.created_at between symmetric now() - '1 days' :: interval and now() - '30 days' :: interval;

Dashboards

The query is used in the dashboards: