From 276217ad2d0adb324b94e16a4a41ddb0b0a77b4f Mon Sep 17 00:00:00 2001 From: Shane C Date: Fri, 6 Sep 2024 16:19:55 -0400 Subject: [PATCH] edit issue get settings --- cmd/root.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index a1a4df2..14e1160 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,7 +14,6 @@ import ( "github.com/sethvargo/go-githubactions" "log" "os" - "runtime" "strconv" "strings" @@ -184,9 +183,8 @@ var rootCmd = &cobra.Command{ repoOwner, repoName := actionCtx.Repo() issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{ - CreatedBy: "forgejo-actions", - KeyWord: "GoSec Report", - Type: forgejo.IssueTypeIssue, + KeyWord: "GoSec Report", + Type: forgejo.IssueTypeIssue, }) if err != nil { log.Fatalln(err) @@ -199,9 +197,6 @@ var rootCmd = &cobra.Command{ defer file.Close() - hello := uint8(runtime.NumCPU()) - fmt.Println(hello) - if len(issues) == 0 { if _, _, err := forgeClient.CreateIssue(repoOwner, repoName, forgejo.CreateIssueOption{ Title: "GoSec Report",