This commit is contained in:
parent
276217ad2d
commit
0c677cecbb
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue