Add signature verification predicates (#285)
Policies can now use the has_valid_signatures
, has_valid_signatures_by
, and has_valid_signatures_by_key
to enable rules based on the GPG signatures of commits in the pull requests.
Add support for triage
and maintain
permissions (#294)
Policies can use the requires.permissions
option to specify the minimum permission a collaborator must have to approve a rule. This option replaces the existing admins
and write_collaborators
options, which are now deprecated.
As a result of this change, policies that still use the admins
and write_collaborators
options will behave slightly differently:
- Rules that set
write_collaborators: true
can also be approved by users withmaintain
andadmin
permissions - Rules that set
admins: true
and enable review requests will now request direct admins in addition members of admin teams