teams: Add a 'cc-mentors-header-cmd' action.

* etc/teams.scm.in (main): Register a new "cc-mentors-header-cmd" action.
Document it.
This commit is contained in:
Maxim Cournoyer 2023-04-23 10:52:07 -04:00
parent 8b972da068
commit e04161fd25
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -719,6 +719,9 @@ (define (main . args)
(list-members (find-team team-name) (current-output-port)
"X-Debbugs-Cc: "))
(patch->teams patch-file)))
(("cc-mentors-header-cmd" patch-file)
(list-members (find-team "mentors") (current-output-port)
"X-Debbugs-Cc: "))
(("get-maintainer" patch-file)
(apply main "list-members" (patch->teams patch-file)))
(("list-teams" . args)
@ -735,10 +738,12 @@ (define (main . args)
Commands:
cc <team-name>
get git send-email flags for cc-ing <team-name>
cc-members <start> <end> | patch
cc-members <start> <end> | <patch>
cc teams related to files changed between revisions or in a patch file
cc-members-header-cmd <patch>
cc-members variant for use with 'git send-email --header-cmd'
cc-mentors-header-cmd <patch>
command to use with 'git send-email --header-cmd' to notify mentors
list-teams
list teams and their members
list-members <team-name>