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()
|
repoOwner, repoName := actionCtx.Repo()
|
||||||
|
|
||||||
issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{
|
issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{
|
||||||
KeyWord: "GoSec Report",
|
Type: forgejo.IssueTypeIssue,
|
||||||
Type: forgejo.IssueTypeIssue,
|
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
|
@ -206,6 +205,7 @@ var rootCmd = &cobra.Command{
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for _, issue := range issues {
|
for _, issue := range issues {
|
||||||
|
fmt.Println(issue.OriginalAuthor)
|
||||||
if issue.Title == "GoSec Report" && strings.Contains(issue.Body, "GoSec Report:") {
|
if issue.Title == "GoSec Report" && strings.Contains(issue.Body, "GoSec Report:") {
|
||||||
if _, _, err := forgeClient.EditIssue(repoOwner, repoName, issue.ID, forgejo.EditIssueOption{
|
if _, _, err := forgeClient.EditIssue(repoOwner, repoName, issue.ID, forgejo.EditIssueOption{
|
||||||
Body: &markdownOutputStr,
|
Body: &markdownOutputStr,
|
||||||
|
|
Loading…
Reference in a new issue