This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 8d897093925 teams: Add “gcd-quorum” action.
8d897093925 is described below

commit 8d89709392571e337442f8a11acf22a5921cde01
Author: Noé Lopez <[email protected]>
AuthorDate: Fri Nov 13 14:54:03 2026 +0100

    teams: Add “gcd-quorum” action.
    
    * etc/teams.scm (all-teams, all-members): New functions.
    (main)[cc-all-team-members]: Factorise.
    [gcd-quorum]: New action.
    [anything]: Update usage.
    
    Reviewed-By: Ludovic Courtès <[email protected]>
    Signed-off-by: Noé Lopez <[email protected]>
---
 etc/teams.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/etc/teams.scm b/etc/teams.scm
index 3ab84e0617c..418ccc82ea1 100755
--- a/etc/teams.scm
+++ b/etc/teams.scm
@@ -1898,6 +1898,14 @@ description: ~a
                  (map find-team team-names)
                  (hash-map->list (lambda (_ value) value) %teams)))))
 
+(define (all-teams)
+  "Return a list of all teams."
+  (hash-map->list (lambda (_ team) team) %teams))
+
+(define (all-members)
+  "Return a list of all team members."
+  (sort-members (append-map team-members (all-teams))))
+
 
 (define (diff-revisions rev-start rev-end)
   "Return the list of added, modified or removed files between REV-START
@@ -2005,7 +2013,7 @@ and REV-END, two git revision strings."
     (("cc" . team-names)
      (apply cc (map find-team team-names)))
     (("cc-all-team-members")
-     (apply cc (hash-map->list (lambda (_ team) team) %teams)))
+     (apply cc (all-teams)))
     (("cc-members" patch-file)
      (unless (file-exists? patch-file)
        (error "patch file does not exist:" patch-file))
@@ -2034,6 +2042,9 @@ and REV-END, two git revision strings."
       team-names))
     (("show" . team-names)
      (list-teams team-names))
+    (("gcd-quorum")
+     (format #true "~d~%"
+             (inexact->exact (ceiling (* 0.25 (length (all-members)))))))
     (("codeowners")
      (export-codeowners (current-output-port)))
     (("sync-codeberg-teams" token)
@@ -2061,6 +2072,8 @@ Commands:
       compatibility mode with Linux get_maintainer.pl
   show <team-name>
       display <team-name> properties
+  gcd-quorum
+      show how many members are needed for the acceptance of a GCD
   codeowners
       write a 'CODEOWNERS' file suitable for Codeberg on standard output
   sync-codeberg-teams <token>

Reply via email to