turbot/steampipe-mod-github-insights

Dashboard: GitHub Open Pull Request Age Report

This report answers the following questions:

  • How old are open PRs on specified repositories?
  • When were open PRs last updated on specified repositories?
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-github-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

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

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run github_insights.dashboard.pull_request_open_age_report --share

Queries

This dashboard uses the the following queries:
select
'> 1 Year' 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 <= now() - '1 year' :: interval;

Tags