-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing PR comment #208
testing PR comment #208
Conversation
Temporary image deleted. |
test |
test2 |
Mergecat's ReviewClick to read mergecats review!😼 Mergecat review of cmd/README.md@@ -0,0 +1,3 @@
+# CMD
+
+testing read me
\ No newline at end of file Feedback & Suggestions: 📝 It's a good start to include a README file for better documentation. However, consider adding a newline at the end of the file to conform to POSIX standards, which can prevent potential issues with version control systems and command-line tools that expect this newline. Additionally, expanding the content to include more detailed information about the project, usage instructions, or development guidelines could significantly enhance the utility of the README. 😼 Mergecat review of pkg/git/manager.go@@ -30,15 +30,15 @@ func (rm *RepoManager) Clone(ctx context.Context, cloneUrl, branchName string) (
}
rm.lock.Lock()
- defer rm.lock.Unlock() // just for safety's sake
+ //defer rm.lock.Unlock() // just for safety's sake
rm.repos = append(rm.repos, repo)
return repo, nil
}
func (rm *RepoManager) Cleanup() {
rm.lock.Lock()
- defer rm.lock.Unlock()
+ //defer rm.lock.Unlock()
for _, repo := range rm.repos {
repo.Wipe() 🔍 Feedback & Suggestions:
😼 Mergecat review of pkg/git/repo.go@@ -20,7 +20,6 @@ import (
"github.com/zapier/kubechecks/pkg"
"github.com/zapier/kubechecks/pkg/config"
"github.com/zapier/kubechecks/pkg/vcs"
- "github.com/zapier/kubechecks/telemetry"
)
type Repo struct {
@@ -119,10 +118,10 @@ func (r *Repo) MergeIntoTarget(ctx context.Context, sha string) error {
defer span.End()
cmd := r.execCommand("git", "merge", sha)
- out, err := cmd.CombinedOutput()
+ _, err := cmd.CombinedOutput()
if err != nil {
- telemetry.SetError(span, err, "merge commit into branch")
- log.Error().Err(err).Msgf("unable to merge %s, %s", sha, out)
+ //telemetry.SetError(span, err, "merge commit into branch")
+ //log.Error().Err(err).Msgf("unable to merge %s, %s", sha, out)
return err
}
🔍 Feedback & Suggestions:
👉 Overall, ensure that the changes align with the broader goals of error handling, logging, and telemetry in your application. If reducing verbosity or dependencies is the goal, consider alternative methods to maintain functionality without sacrificing observability and debuggability. Dependency ReviewClick to read mergecats review!No suggestions found |
testing pr commenting.