fix: improve warning about remote not found (#2169)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
		@@ -168,7 +168,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: %v", err)
 | 
			
		||||
			common.Logger(ctx).Warningf("unable to get git repo (githubInstance: %v; remoteName: %v, repoPath: %v): %v", githubInstance, remoteName, repoPath, err)
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
		ghc.Repository = repo
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user