...
Step-by-step guide
Setting Up:
Add aliases for the remotes expected by the merge script (if you haven't already):
Code Block language bash $ cd $ZOOKEPER_BASE_DIR $ git remote add apache-github https://github.com/apache/zookeeper.git $ git remote add apache https://git-wip-us.apache.org/repos/asf/zookeeper.git
- Before starting using the script it’s required to setup environment variables below:
PR_REMOTE_NAME - points to Github Github mirror of of Apache project (default git-remote name: apache-github)
PUSH_REMOTE_NAME - points to Apache Git repo (default git-remote name: apache)
$ export PR_REMOTE_NAME=apache-github
$ export PUSH_REMOTE_NAME=apache
- Install jira-python:
sudo easy_install JIRA - Setup environment variables to JIRA credentials:
JIRA_USERNAME & JIRA_PASSWORD - apache JIRA credentials
Code Block language bash $ export JIRA_USERNAME=myname $ export JIRA_PASSWORD=mypassword
If you don'
tt execute steps 3 and 4 then the script will not be able to automatically close the JIRA after merging the PR.
- (Optional) Setup Github OAUTH token:
GITHUB_OAUTH_KEY (optional) - if you exceed Github API rate limit then set this variable to allow it to surpass this limit as the script comment states:
Code Block language bash $ export GITHUB_OAUTH_KEY=<your-github-oauth-key>
Once the pull request is ready to be merged (it has been reviewed, feedback has been addressed, CI build has been successful and the branch merges cleanly into trunk):
- adfadsfsa
Info |
---|
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...