Repository: spark Updated Branches: refs/heads/branch-1.4 a49a14588 -> fceaffc49
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 (cherry picked from commit 11a1a135d1fe892cd48a9116acc7554846aed84c) Signed-off-by: Reynold Xin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fceaffc4 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fceaffc4 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fceaffc4 Branch: refs/heads/branch-1.4 Commit: fceaffc49b02530ea6ebcf9c9e4a960ac0be31ab Parents: a49a145 Author: tedyu <[email protected]> Authored: Thu May 14 15:26:35 2015 -0700 Committer: Reynold Xin <[email protected]> Committed: Thu May 14 15:26:47 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/fceaffc4/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]
