From a1758ba643287a772808b55f7fc0d85b7f838a7a467865cdd28b94cf7629e7e0 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Tue, 16 Jul 2024 15:30:58 +0200 Subject: [PATCH] . --- pr-review/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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