This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 734d3ba9 Allow for non-PMC chairs
734d3ba9 is described below

commit 734d3ba9ea80d9ab608639d4462ee74527ae813f
Author: Sebb <[email protected]>
AuthorDate: Mon Sep 30 16:51:15 2024 +0100

    Allow for non-PMC chairs
---
 www/roster/views/person/main.js.rb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/www/roster/views/person/main.js.rb 
b/www/roster/views/person/main.js.rb
index b4936ce5..4c8e2c30 100644
--- a/www/roster/views/person/main.js.rb
+++ b/www/roster/views/person/main.js.rb
@@ -30,7 +30,11 @@ class Person < Vue
 
     # PMCs
     noPMCsub = false
-    pmcs = @committer.pmcs
+    pmcs = @committer.pmcs.slice() # Take copy to avoid affecting orginal
+    # allow for non-PMC chairs
+    @committer.chairOf.each do |pmcchair|
+      pmcs << pmcchair unless pmcs.include? pmcchair
+    end
     unless pmcs.empty?
       _div.row do
         _div.name 'PMCs'
@@ -47,6 +51,9 @@ class Person < Vue
               if @committer.chairOf.include? pmc
                 _ ' (chair)'
               end
+              unless @committer.pmcs.include?(pmc)
+                _b ' (not on PMC)'
+              end
               unless @committer.committees.include?(pmc)
                 _b ' (not in LDAP committee group)'
               end

Reply via email to