Control: Issues should have at least 1 user assigned
Description
Issues should have at least 1 assignee so it's clear who is responsible for it.
Usage
Run the control in your terminal:
powerpipe control run github_sherlock.control.issue_has_assigneeSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run github_sherlock.control.issue_has_assignee --shareSteampipe Tables
SQL
select  i.url as resource,  case    when assignees_total_count = 0 then 'alarm'    when assignees_total_count = 1 then 'ok'    -- More than 1 assignee could be ok, but let users know there's more than 1    else 'info'  end as status,  '#' || i.number || ' ' || i.title || ' has ' || assignees_total_count || ' assignee(s).' as reason,  i.repository_full_namefrom  github_my_repository as r  left join github_issue as i on r.name_with_owner = i.repository_full_namewhere  r.is_fork = false and i.state = 'OPEN'