Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.0.0
-
None
-
None
Description
We can import zk-merge-pr.py script from ZooKeeper project.
The script:
- imports a PR from github
- squashes and merges all of the commits
- compute Reviewers from github API
- updates Jira and mark the issue as resolved
This is the guide on ZooKeeper project
https://cwiki.apache.org/confluence/display/ZOOKEEPER/Merging+Github+Pull+Requests
We will have our own page once the script gets merged
Setup:
git remote add apache https://github.com/apache/curator.git git remote add apache-github https://github.com/apache/curator.git export JIRA_USERNAME=my jira username
run the script:
python3 merge-pr.py
Just answer to the questions....
You will have to install the "jira" module in python3 if you want the script to do the JIRA paperwork for you
pip3 install jira