From c0ca8ae9e4c9d280346146a4864e799e509817fa Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 25 Mar 2015 18:02:58 -0300 Subject: [PATCH 1/2] Added whatsnew headers in JIRA issue --- whatsnew/createnewandnoteworthy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whatsnew/createnewandnoteworthy.py b/whatsnew/createnewandnoteworthy.py index be32e285..c9562e99 100644 --- a/whatsnew/createnewandnoteworthy.py +++ b/whatsnew/createnewandnoteworthy.py @@ -82,13 +82,14 @@ def quote(x): cms = map(nametuple, comps) #print name + "->" + str(cms) + new_file_contents = '= '+ name +' What's New\n:page-layout: whatsnew\n:page-component_id: '+comps+'\n:page-component_version: '+jbide_fixversion+'\n:page-product_id: jbt_core\n:page-product_version: '+jbide_fixversion compnnsearch = 'https://issues.jboss.org/issues/?jql=' + urllib.quote_plus(nnsearchquery + " and component in (" + ",".join(map(quote,comps)) + ")") rootnn_dict = { 'project' : { 'key': 'JBIDE' }, 'summary' : name + ' New and Noteworthy for ' + jbide_fixversion, - 'description' : 'This [query|' + compnnsearch + '] contains the search for the specific component(s), to see all, use this [query|' + nnsearch + '].\n\n If ' + name + ' is not listed here check if there are issues that should be added and add them.\n\n Document the ones relevant for ' + name + ' by adding to [whatsnew|https://github.com/jbosstools/jbosstools-website/tree/master/documentation/whatsnew] and submit a pullrequest.\n\n If no news for this component please reject and close this issue.', + 'description' : 'This [query|' + compnnsearch + '] contains the search for the specific component(s), to see all, use this [query|' + nnsearch + '].\n\n If ' + name + ' is not listed here check if there are issues that should be added and add them.\n\n Document the ones relevant for ' + name + ' by adding to [whatsnew|https://github.com/jbosstools/jbosstools-website/tree/master/documentation/whatsnew] and submit a pull-request with the following header: {code}'+new_file_contents+'{code}.\n\n If no news for this component please reject and close this issue.', 'issuetype' : { 'name' : 'Sub-task' }, 'parent' : { 'id' : rootnn.key}, 'priority' : { 'name': 'Critical'}, From c669f44c23266182d3d1b74d3cf7a33cc0338565 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 25 Mar 2015 18:05:15 -0300 Subject: [PATCH 2/2] Forgot to escape the first apostrophe --- whatsnew/createnewandnoteworthy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whatsnew/createnewandnoteworthy.py b/whatsnew/createnewandnoteworthy.py index c9562e99..4d145bb7 100644 --- a/whatsnew/createnewandnoteworthy.py +++ b/whatsnew/createnewandnoteworthy.py @@ -82,7 +82,7 @@ def quote(x): cms = map(nametuple, comps) #print name + "->" + str(cms) - new_file_contents = '= '+ name +' What's New\n:page-layout: whatsnew\n:page-component_id: '+comps+'\n:page-component_version: '+jbide_fixversion+'\n:page-product_id: jbt_core\n:page-product_version: '+jbide_fixversion + new_file_contents = '= '+ name +' What\'s New\n:page-layout: whatsnew\n:page-component_id: '+comps+'\n:page-component_version: '+jbide_fixversion+'\n:page-product_id: jbt_core\n:page-product_version: '+jbide_fixversion compnnsearch = 'https://issues.jboss.org/issues/?jql=' + urllib.quote_plus(nnsearchquery + " and component in (" + ",".join(map(quote,comps)) + ")")