diff --git a/cmd/root.go b/cmd/root.go index 14e1160..f62170c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -183,8 +183,7 @@ var rootCmd = &cobra.Command{ repoOwner, repoName := actionCtx.Repo() issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{ - KeyWord: "GoSec Report", - Type: forgejo.IssueTypeIssue, + Type: forgejo.IssueTypeIssue, }) if err != nil { log.Fatalln(err) @@ -206,6 +205,7 @@ var rootCmd = &cobra.Command{ } } else { for _, issue := range issues { + fmt.Println(issue.OriginalAuthor) if issue.Title == "GoSec Report" && strings.Contains(issue.Body, "GoSec Report:") { if _, _, err := forgeClient.EditIssue(repoOwner, repoName, issue.ID, forgejo.EditIssueOption{ Body: &markdownOutputStr,