turbot/github_sherlock
GitHub
Loading controls...

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:

steampipe check github_sherlock.control.public_repo_pull_request_template_added

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share github_sherlock.control.public_repo_pull_request_template_added

Plugins & 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