Skip to content
Snippets Groups Projects
Commit 11a1a135 authored by tedyu's avatar tedyu Committed by Reynold Xin
Browse files

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
parent 5d7d4f88
No related branches found
No related tags found
No related merge requests found
......@@ -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)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment