You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/11/19 23:05:51 UTC

[whimsy] branch master updated: Switch to Proposed Name

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 bcd740a  Switch to Proposed Name
bcd740a is described below

commit bcd740a1b033577c19df6050a724ad61ce2e866d
Author: Sebb <se...@apache.org>
AuthorDate: Thu Nov 19 23:05:42 2020 +0000

    Switch to Proposed Name
---
 lib/whimsy/asf/podling.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/asf/podling.rb b/lib/whimsy/asf/podling.rb
index 655b422..0e75d69 100644
--- a/lib/whimsy/asf/podling.rb
+++ b/lib/whimsy/asf/podling.rb
@@ -395,13 +395,14 @@ module ASF
     end
 
     # parse (and cache) names mentioned in podlingnamesearches
+    # Note: customfield_12310520 = 'Podling', customfield_12310521 = 'Proposed Name'
     def self.namesearch
       # cache JIRA response
       cache = File.join(ASF::Config.get(:cache), 'pns.jira')
       if not File.exist?(cache) or File.mtime(cache) < Time.now - 300
         query = 'https://issues.apache.org/jira/rest/api/2/search?' +
             'maxResults=1000&' +
-            'jql=project=PODLINGNAMESEARCH&fields=summary,resolution,customfield_12310520'
+            'jql=project=PODLINGNAMESEARCH&fields=summary,resolution,customfield_12310521'
         begin
           res = Net::HTTP.get_response(URI(query))
           res.value() # Raises error if not OK
@@ -416,7 +417,7 @@ module ASF
       # parse JIRA titles for proposed name
       issues = JSON.parse(File.read(cache))['issues'].map do |issue|
         title = issue['fields']['summary'].strip.gsub(/\s+/, ' ')
-        name = issue['fields']['customfield_12310520']
+        name = issue['fields']['customfield_12310521']
 
         if name
           name.sub! /^Apache\s+/, ''