diff --git a/pr-review/main.go b/pr-review/main.go index 912afe1..be49412 100644 --- a/pr-review/main.go +++ b/pr-review/main.go @@ -63,11 +63,12 @@ func processPullRequestSync(h *common.RequestHandler) error { } // nothing changed, still in sync - if commitId == req.Pull_Request.Head.Ref { + if commitId == req.Pull_Request.Head.Sha { + h.Log("commitID already match - nothing to do") return nil } - h.Log("different ids: '%s' vs. '%s'", req.Pull_Request.Head.Ref, commitId) + h.Log("different ids: '%s' vs. '%s'", req.Pull_Request.Head.Sha, commitId) commitMsg := fmt.Sprintf(`Sync PR