Skip to content

Commit

Permalink
PARQUET-57 - Update dev README to clarify two points
Browse files Browse the repository at this point in the history
Author: Brock Noland <[email protected]>

Closes apache#26 from brockn/PARQUET-57 and squashes the following commits:

ffb2a9a [Brock Noland] Prompt for jira user/pass if not set
0135cdd [Brock Noland] Fix spelling
171d714 [Brock Noland] PARQUET-57 - Update dev README to clarify two points
  • Loading branch information
Brock Noland authored and julienledem committed Jul 31, 2014
1 parent 21d871b commit 0793e49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ run the following command
```
dev/merge_parquet_pr.py
```

Note:
* The parent directory of your parquet repository must be called parquet-mr
* Without jira-python installed you'll have to close the JIRA manually

example output:
```
Which pull request would you like to merge? (e.g. 34):
Expand Down
10 changes: 8 additions & 2 deletions dev/merge_parquet_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
# Remote name which points to Apache git
PUSH_REMOTE_NAME = os.environ.get("PUSH_REMOTE_NAME", "apache")
# ASF JIRA username
JIRA_USERNAME = os.environ.get("JIRA_USERNAME", "setme")
JIRA_USERNAME = os.environ.get("JIRA_USERNAME")
# ASF JIRA password
JIRA_PASSWORD = os.environ.get("JIRA_PASSWORD", "setme")
JIRA_PASSWORD = os.environ.get("JIRA_PASSWORD")

GITHUB_BASE = "https://github.com/apache/" + PROJECT_NAME + "/pull"
GITHUB_API_BASE = "https://api.github.com/repos/apache/" + PROJECT_NAME
Expand Down Expand Up @@ -277,6 +277,12 @@ def get_version_json(version_str):
print "Succesfully resolved %s with fixVersions=%s!" % (jira_id, fix_versions)


if not JIRA_USERNAME:
JIRA_USERNAME = raw_input("Env JIRA_USERNAME not set, please enter your JIRA username:")

if not JIRA_PASSWORD:
JIRA_PASSWORD = raw_input("Env JIRA_PASSWORD not set, please enter your JIRA password:")

branches = get_json("%s/branches" % GITHUB_API_BASE)
branch_names = filter(lambda x: x.startswith("branch-"), [x['name'] for x in branches])
# Assumes branch names can be sorted lexicographically
Expand Down

0 comments on commit 0793e49

Please sign in to comment.