From e1c9907e279bd71878af50fbcbbf4b1cc771f7f3 Mon Sep 17 00:00:00 2001 From: Tetsuharu Ohzeki Date: Wed, 16 Jun 2021 17:23:31 +0900 Subject: [PATCH] Dump why fail to remove the label for issue --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 998ab81..00a9380 100644 --- a/main.go +++ b/main.go @@ -169,7 +169,7 @@ func checkPrIsChangedToMergeable(githubClient *github.Client, githubEventPath st ctx := context.Background() if _, err := githubClient.Issues.RemoveLabelForIssue(ctx, repoOwner, repoName, prNumber, needRebaseLabel); err != nil { - log.Printf("#%v is mergeable but fail to remove the label `%v`", prNumber, needRebaseLabel) + log.Printf("#%v is mergeable but fail to remove the label `%v` because `%v`", prNumber, needRebaseLabel, err) return }