Skip to content

Commit

Permalink
Support PR base branches other than master (FNALbuild#24)
Browse files Browse the repository at this point in the history
supports CI triggering for Mu2eII_SM21 branch
  • Loading branch information
ryuwd authored Aug 10, 2020
1 parent 2949ba2 commit 16b8ac5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repos/Mu2e/Offline/process_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F

# this will be the commit of master that the PR is merged
# into for the CI tests (for a build test this is just the current HEAD.)
master_commit_sha = repo.get_branch("master").commit.sha
master_commit_sha = pr.base.sha # repo.get_branch("master").commit.sha

# get latest commit
last_commit = pr.get_commits().reversed[0]
Expand All @@ -209,6 +209,7 @@ def process_pr(repo_config, gh, repo, issue, dryRun, cmsbuild_user=None, force=F

print("Latest commit message: ", git_commit.message.encode("ascii", "ignore"))
print("Latest commit sha: ", git_commit.sha)
print("Merging into: ",pr.base.ref, pr.base.sha)
print("PR update time", pr.updated_at)
print("Time UTC:", datetime.utcnow())

Expand Down

0 comments on commit 16b8ac5

Please sign in to comment.