From 0a69642bd6bc0c29f5c113c25e607b328ce83541 Mon Sep 17 00:00:00 2001 From: Shane C Date: Wed, 11 Sep 2024 19:11:34 -0400 Subject: [PATCH] remove excess logging --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 3a99a26..05c7e2a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -9,7 +9,6 @@ import ( "fmt" "git.eggactyl.cloud/Eggactyl/shell/linux" "github.com/go-git/go-git/v5" - "github.com/kr/pretty" "github.com/nao1215/markdown" "github.com/owenrumney/go-sarif/sarif" "github.com/sethvargo/go-githubactions" @@ -198,9 +197,11 @@ var rootCmd = &cobra.Command{ } issues, _, err := forgeClient.ListRepoIssues(repoOwner, repoName, forgejo.ListIssueOption{ + State: forgejo.StateOpen, ListOptions: forgejo.ListOptions{ Page: -1, }, + Type: forgejo.IssueTypeIssue, }) if err != nil { log.Fatalln(err) @@ -208,7 +209,6 @@ var rootCmd = &cobra.Command{ for _, issue := range issues { if issue.State == forgejo.StateOpen && issue.Title == "GoSec Report" && repoOwner+"/"+repoName == issue.Repository.FullName && myUser.UserName == issue.Poster.UserName { - pretty.Println(issue) if _, _, err := forgeClient.EditIssue(repoOwner, repoName, issue.Index, forgejo.EditIssueOption{ Body: &markdownOutputStr, }); err != nil {