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 {