This commit is contained in:
parent
f1f461ec82
commit
5f1ac28901
1 changed files with 1 additions and 4 deletions
|
@ -198,19 +198,16 @@ var rootCmd = &cobra.Command{
|
|||
}
|
||||
|
||||
issues, _, err := forgeClient.ListRepoIssues(repoOwner, repoName, forgejo.ListIssueOption{
|
||||
State: forgejo.StateOpen,
|
||||
ListOptions: forgejo.ListOptions{
|
||||
Page: -1,
|
||||
},
|
||||
Type: forgejo.IssueTypeIssue,
|
||||
CreatedBy: myUser.UserName,
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
for _, issue := range issues {
|
||||
if issue.Title == "GoSec Report" && repoOwner+"/"+repoName == issue.Repository.FullName {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue