whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Provide list of ids only
Date Fri, 13 Jul 2018 00:30:11 GMT
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 099d665  Provide list of ids only
099d665 is described below

commit 099d6657157fcbafc43a96223474ddb964236d34
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Jul 13 01:30:09 2018 +0100

    Provide list of ids only
---
 lib/whimsy/asf/ldap.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index a541300..badfbe9 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -542,6 +542,12 @@ module ASF
         map {|uid| Person.find uid[/uid=(.*?),/,1]}
     end
 
+    # get a list of committers (ids only)
+    def self.listids()
+      ASF.search_one(base, 'cn=committers', 'member').flatten.
+        map {|uid| uid[/uid=(.*?),/,1]}
+    end
+
     # create a new person and add as a new committer to LDAP.
     # Attrs must include uid, cn, and mail
     def self.create(attrs)


Mime
View raw message