turbot/steampipe-mod-github-sherlock

Control: Pull request template should be added in each public repository

Description

Adding a pull request template provides a consistent format for contributors' pull requests.

Usage

Run the control in your terminal:

powerpipe control run github_sherlock.control.public_repo_pull_request_template_added

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run github_sherlock.control.public_repo_pull_request_template_added --share

Steampipe Tables

SQL

select
url as resource,
case
when pull_request_templates <> '[]' then 'ok'
else 'alarm'
end as status,
name_with_owner || case when (pull_request_templates <> '[]') then ' has a ' else ' has no ' end || 'pull request template.' as reason,
name_with_owner
from
github_my_repository
where
visibility = 'PUBLIC' and is_fork = false

Tags