Apache DataFusion SQL Query Engine
ARROW-6489: [Developer][Documentation] Fix merge script and readme
Kenta Murata7b6da279095f
diff --git a/dev/README.md b/dev/README.mdindex ead36d3747..f83b75e9b8 100644--- a/dev/README.md+++ b/dev/README.md@@ -27,7 +27,7 @@ you need to have linked your GitHub and ASF accounts onhttps://gitbox.apache.org/setup/ to be able to push to GitHub as the mainremote.-* How to merge a Pull request:+## How to merge a Pull request```git remote add apache [email protected]:apache/arrow.git@@ -39,13 +39,21 @@ run the following commanddev/merge_arrow_pr.py```+This script uses requests and jira libraries. Before running this script,+run the following command to prepare them:++```+pip install requests jira+```+This uses the GitHub REST API; if you encounter rate limit issues, you may seta `ARROW_GITHUB_API_TOKEN` environment variable to use a Personal Access Token.-Note:+You can specify the username and the password of your JIRA account in+`APACHE_JIRA_USERNAME` and `APACHE_JIRA_PASSWORD` environment variables.+If these aren't supplied, the script will ask you the values of them.-* The directory name of your Arrow git clone must be called arrow-* Without jira-python installed you'll have to close the JIRA manually+Note that the directory name of your Arrow git clone must be called arrow.example output:```diff --git a/dev/merge_arrow_pr.py b/dev/merge_arrow_pr.pyindex c6c3c7e808..890984f242 100755--- a/dev/merge_arrow_pr.py+++ b/dev/merge_arrow_pr.py@@ -334,7 +334,7 @@ class PullRequest(object):had_conflicts = Falsetry:- run_cmd(['git', 'merge', pr_branch_name, '--squash'])+ run_cmd(['git', 'merge', pr_branch_name, '--ff', '--squash'])except Exception as e:msg = ("Error merging: %s\nWould you like to ""manually fix-up this merge?" % e)