aboutsummaryrefslogtreecommitdiff
path: root/dev/github_jira_sync.py
diff options
context:
space:
mode:
authortedyu <yuzhihong@gmail.com>2015-05-14 15:26:35 -0700
committerReynold Xin <rxin@databricks.com>2015-05-14 15:26:35 -0700
commit11a1a135d1fe892cd48a9116acc7554846aed84c (patch)
tree55de66ac7c9e18429da7af0576835c68ae3b3d14 /dev/github_jira_sync.py
parent5d7d4f887d509e6d037d8fc5247d2e5f8a4563c9 (diff)
downloadspark-11a1a135d1fe892cd48a9116acc7554846aed84c.tar.gz
spark-11a1a135d1fe892cd48a9116acc7554846aed84c.tar.bz2
spark-11a1a135d1fe892cd48a9116acc7554846aed84c.zip
Make SPARK prefix a variable
Author: tedyu <yuzhihong@gmail.com> 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
Diffstat (limited to 'dev/github_jira_sync.py')
-rwxr-xr-xdev/github_jira_sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/github_jira_sync.py b/dev/github_jira_sync.py
index 8051080117..ff1e39664e 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)]