Repository: spark
Updated Branches:
  refs/heads/master 5d7d4f887 -> 11a1a135d


Make SPARK prefix a variable

Author: tedyu <[email protected]>

Closes #6153 from ted-yu/master and squashes the following commits:

4e0bac5 [tedyu] Use JIRA_PROJECT_NAME as variable name
ab982aa [tedyu] Make SPARK prefix a variable


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/11a1a135
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/11a1a135
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/11a1a135

Branch: refs/heads/master
Commit: 11a1a135d1fe892cd48a9116acc7554846aed84c
Parents: 5d7d4f8
Author: tedyu <[email protected]>
Authored: Thu May 14 15:26:35 2015 -0700
Committer: Reynold Xin <[email protected]>
Committed: Thu May 14 15:26:35 2015 -0700

----------------------------------------------------------------------
 dev/github_jira_sync.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/11a1a135/dev/github_jira_sync.py
----------------------------------------------------------------------
diff --git a/dev/github_jira_sync.py b/dev/github_jira_sync.py
index 8051080..ff1e396 100755
--- a/dev/github_jira_sync.py
+++ b/dev/github_jira_sync.py
@@ -33,6 +33,7 @@ except ImportError:
 
 # User facing configs
 GITHUB_API_BASE = os.environ.get("GITHUB_API_BASE", 
"https://api.github.com/repos/apache/spark";)
+JIRA_PROJECT_NAME = os.environ.get("JIRA_PROJECT_NAME", "SPARK")
 JIRA_API_BASE = os.environ.get("JIRA_API_BASE", 
"https://issues.apache.org/jira";)
 JIRA_USERNAME = os.environ.get("JIRA_USERNAME", "apachespark")
 JIRA_PASSWORD = os.environ.get("JIRA_PASSWORD", "XXX")
@@ -68,7 +69,7 @@ def get_jira_prs():
        page_json = get_json(page)
 
        for pull in page_json:
-           jiras = re.findall("SPARK-[0-9]{4,5}", pull['title'])
+           jiras = re.findall(JIRA_PROJECT_NAME + "-[0-9]{4,5}", pull['title'])
            for jira in jiras:
                result = result + [(jira,  pull)]
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to