whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: rough in some special order title verifications
Date Wed, 15 Jun 2016 00:24:05 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  33be260   rough in some special order title verifications
33be260 is described below

commit 33be2603fa9720fcfe4b5b11d380cd2f73bd1983
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Tue Jun 14 20:23:28 2016 -0400

    rough in some special order title verifications
---
 lib/whimsy/asf/agenda/special.rb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/lib/whimsy/asf/agenda/special.rb b/lib/whimsy/asf/agenda/special.rb
index a0f4748..12844c3 100644
--- a/lib/whimsy/asf/agenda/special.rb
+++ b/lib/whimsy/asf/agenda/special.rb
@@ -39,6 +39,21 @@ class ASF::Board::Agenda
       if text.sub(/s+\Z/,'').scan(/^ *\S/).map(&:length).min != 8
         attrs['warnings'] << 'Resolution is not indented 7 spaces'
       end
+
+      title_checks = {
+        /^Establish/i => /^Establish the Apache .* Project$/,
+        /^Change.*Chair/i => /^Change the Apache .* Project Chair$/,
+        /^Terminate/i => /^Terminate the Apache .* Project$/,
+      }
+
+      title_checks.each do |select, match|
+        if fulltitle =~ select and fulltitle !~ match
+          attrs['warnings'] << 
+            "Non-standard title wording: #{fulltitle.inspect}; " +
+            "expected #{match.inspect}"
+        end
+      end
+
       attrs.delete 'indent'
       attrs.delete 'warnings' if attrs['warnings'].empty?
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message