This commit is contained in:
parent
72dac5190d
commit
276217ad2d
1 changed files with 2 additions and 7 deletions
|
@ -14,7 +14,6 @@ import (
|
||||||
"github.com/sethvargo/go-githubactions"
|
"github.com/sethvargo/go-githubactions"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -184,7 +183,6 @@ var rootCmd = &cobra.Command{
|
||||||
repoOwner, repoName := actionCtx.Repo()
|
repoOwner, repoName := actionCtx.Repo()
|
||||||
|
|
||||||
issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{
|
issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{
|
||||||
CreatedBy: "forgejo-actions",
|
|
||||||
KeyWord: "GoSec Report",
|
KeyWord: "GoSec Report",
|
||||||
Type: forgejo.IssueTypeIssue,
|
Type: forgejo.IssueTypeIssue,
|
||||||
})
|
})
|
||||||
|
@ -199,9 +197,6 @@ var rootCmd = &cobra.Command{
|
||||||
|
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
|
|
||||||
hello := uint8(runtime.NumCPU())
|
|
||||||
fmt.Println(hello)
|
|
||||||
|
|
||||||
if len(issues) == 0 {
|
if len(issues) == 0 {
|
||||||
if _, _, err := forgeClient.CreateIssue(repoOwner, repoName, forgejo.CreateIssueOption{
|
if _, _, err := forgeClient.CreateIssue(repoOwner, repoName, forgejo.CreateIssueOption{
|
||||||
Title: "GoSec Report",
|
Title: "GoSec Report",
|
||||||
|
|
Loading…
Reference in a new issue