From 4e5a3025d79ed8a7551d5b391b95e14dfe0722d6 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 10 Aug 2025 16:24:49 +0000 Subject: [PATCH] chore: "unable to get git repo" is a debug message, not a warning (#822) Refs https://github.com/nektos/act/pull/2495 --- * Disable "unable to get git repo" when none exists. * Restore error back so it's included in bug reports Change from Warningf to Debugf. --------- Co-authored-by: Casey Lee (cherry picked from commit e42a534b2e65d28b41532f9a44d18c0354aecfc2) - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/822): chore: "unable to get git repo" is a debug message, not a warning [skip cascade] Co-authored-by: Steven Edwards Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/822 Reviewed-by: Gusted Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- act/model/github_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/model/github_context.go b/act/model/github_context.go index 02d4f779..4b1585ae 100644 --- a/act/model/github_context.go +++ b/act/model/github_context.go @@ -171,7 +171,7 @@ func (ghc *GithubContext) SetRepositoryAndOwner(ctx context.Context, githubInsta if ghc.Repository == "" { repo, err := git.FindGithubRepo(ctx, repoPath, githubInstance, remoteName) if err != nil { - common.Logger(ctx).Warningf("unable to get git repo (githubInstance: %v; remoteName: %v, repoPath: %v): %v", githubInstance, remoteName, repoPath, err) + common.Logger(ctx).Debugf("unable to get git repo (githubInstance: %v; remoteName: %v, repoPath: %v): %v", githubInstance, remoteName, repoPath, err) return } ghc.Repository = repo