turbot/github_sherlock

Control: Branches should automatically be deleted after merging in each public repository

Description

Automatically delete branches after merging to maintain only your active branches.

Usage

steampipe check github_sherlock.control.public_repo_delete_branch_on_merge_enabled

Plugins & Tables

SQL

select
html_url as resource,
case
when delete_branch_on_merge then 'ok'
else 'alarm'
end as status,
full_name || ' delete branch on merge is ' || case when(delete_branch_on_merge)::bool then 'enabled' else 'disabled' end || '.' as reason,
full_name
from
github_my_repository
where
visibility = 'public' and fork = false