eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject eagle git commit: [MINOR][DEVTOOL] Fix eagle-dev/checkout-eagle-pr.py for git repo changed
Date Fri, 17 Mar 2017 05:38:55 GMT
Repository: eagle
Updated Branches:
  refs/heads/master a1c6a3948 -> 1e7250d8e


[MINOR][DEVTOOL] Fix eagle-dev/checkout-eagle-pr.py for git repo changed


Project: http://git-wip-us.apache.org/repos/asf/eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/eagle/commit/1e7250d8
Tree: http://git-wip-us.apache.org/repos/asf/eagle/tree/1e7250d8
Diff: http://git-wip-us.apache.org/repos/asf/eagle/diff/1e7250d8

Branch: refs/heads/master
Commit: 1e7250d8e4ca942bbb3dde8ad37d9d0f5b31d614
Parents: a1c6a39
Author: Hao Chen <hao@apache.org>
Authored: Fri Mar 17 13:38:39 2017 +0800
Committer: Hao Chen <hao@apache.org>
Committed: Fri Mar 17 13:38:39 2017 +0800

----------------------------------------------------------------------
 eagle-dev/checkout-eagle-pr.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/eagle/blob/1e7250d8/eagle-dev/checkout-eagle-pr.py
----------------------------------------------------------------------
diff --git a/eagle-dev/checkout-eagle-pr.py b/eagle-dev/checkout-eagle-pr.py
index 39eeec0..3c082d1 100755
--- a/eagle-dev/checkout-eagle-pr.py
+++ b/eagle-dev/checkout-eagle-pr.py
@@ -43,13 +43,13 @@ PUSH_REMOTE_NAME = os.environ.get("PUSH_REMOTE_NAME", "apache-git")
 # https://github.com/settings/tokens. This script only requires the "public_repo" scope.
 GITHUB_OAUTH_KEY = os.environ.get("GITHUB_OAUTH_KEY")
 
-GITHUB_BASE = "https://github.com/apache/incubator-eagle/pull"
-GITHUB_API_BASE = "https://api.github.com/repos/apache/incubator-eagle"
+GITHUB_BASE = "https://github.com/apache/eagle/pull"
+GITHUB_API_BASE = "https://api.github.com/repos/apache/eagle"
 JIRA_BASE = "https://issues.apache.org/jira/browse"
 JIRA_API_BASE = "https://issues.apache.org/jira"
 
-PR_REPO = "https://github.com/apache/incubator-eagle.git"
-PUSH_REPO = "https://git-wip-us.apache.org/repos/asf/incubator-eagle.git"
+PR_REPO = "https://github.com/apache/eagle.git"
+PUSH_REPO = "https://git-wip-us.apache.org/repos/asf/eagle.git"
 
 # Prefix added to temporary branches
 BRANCH_PREFIX = "PR_TOOL"
@@ -116,9 +116,12 @@ def main():
 
     check_init()
 
+    print("%s/branches" % GITHUB_API_BASE)
     branches = get_json("%s/branches" % GITHUB_API_BASE)
+    print(str(branches))
     branch_names = filter(lambda x: x.startswith("branch-"), [x['name'] for x in branches])
     # Assumes branch names can be sorted lexicographically
+    print(str(branch_names))
     latest_branch = sorted(branch_names, reverse=True)[0]
 
     pr_num = raw_input("Which pull request would you like to checkout? (e.g. 34): ")


Mime
View raw message