Przeglądaj źródła

chore: update policy to allow approvals by contributors (#9818)

This adds `allow_contributor: true` which allows approvals by
contributors to the PR (but still not the author themself, which is a
different thing). This allows things like pushing minor fixups while
also approving.

The `ignore_update_merges: true` option makes it so that someone is not
considered a "contributor" just because they push the merge button to
update the branch. In principle this is not needed given the above, but
I like it for clarity.
Jakob Borg 1 rok temu
rodzic
commit
896f9725ec
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      .policy.yml

+ 6 - 0
.policy.yml

@@ -48,6 +48,9 @@ approval_rules:
       count: 1
       count: 1
       teams:
       teams:
         - syncthing/maintainers
         - syncthing/maintainers
+    options:
+      ignore_update_merges: true
+      allow_contributor: true
 
 
   # Regular pull requests require approval by an active contributor
   # Regular pull requests require approval by an active contributor
   - name: is approved by a syncthing contributor
   - name: is approved by a syncthing contributor
@@ -55,6 +58,9 @@ approval_rules:
       count: 1
       count: 1
       teams:
       teams:
         - syncthing/contributors
         - syncthing/contributors
+    options:
+      ignore_update_merges: true
+      allow_contributor: true
 
 
   # Changes to some files (translations, dependencies, compatibility) do not
   # Changes to some files (translations, dependencies, compatibility) do not
   # require approval if they were proposed by a contributor and have a
   # require approval if they were proposed by a contributor and have a