[BUILD] Update PR Merge tool (#790)

* [BUILD] Update PR Merge tool

* [BUILD] Update PR Merge tool

* [BUILD] Update PR Merge tool

* [BUILD] Update PR Merge tool
This commit is contained in:
Kent Yao 2021-07-13 17:32:47 +08:00 committed by GitHub
parent a7b057047b
commit cc1254d648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,12 @@
#
# Utility for creating well-formed pull request merges and pushing them to Kyuubi
# For committers:
# Please check your local git envs via `git remote -v` which should
# apache git@github.com:apache/incubator-kyuubi.git (fetch)
# apache git@github.com:apache/incubator-kyuubi.git (push)
# origin git@github.com:[ YOUR GITHUB USER NAME ]/incubator-kyuubi.git (fetch)
# origin git@github.com:[ YOUR GITHUB USER NAME ]/incubator-kyuubi.git (push)
import json
import os
@ -29,10 +35,10 @@ from urllib.request import Request
from urllib.error import HTTPError
KYUUBI_HOME = os.environ.get("KYUUBI_HOME", os.getcwd())
PR_REMOTE_NAME = os.environ.get("PR_REMOTE_NAME", "origin")
PUSH_REMOTE_NAME = os.environ.get("PUSH_REMOTE_NAME", "origin")
PR_REMOTE_NAME = os.environ.get("PR_REMOTE_NAME", "apache")
PUSH_REMOTE_NAME = os.environ.get("PUSH_REMOTE_NAME", "apache")
GITHUB_OAUTH_KEY = os.environ.get("GITHUB_OAUTH_KEY")
GITHUB_API_BASE = "https://api.github.com/repos/NetEase/kyuubi"
GITHUB_API_BASE = "https://api.github.com/repos/apache/incubator-kyuubi"
BRANCH_PREFIX = "PR_TOOL"