This commit is contained in:
parent
5f1ac28901
commit
0a69642bd6
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue