fix listing repo issues
All checks were successful
Gosec Check / Gosec Check (push) Successful in 53s

This commit is contained in:
Shane C 2024-09-11 15:43:40 -04:00
parent b8c45e319c
commit f1f461ec82
Signed by: shanec
GPG key ID: E46B5FEA35B22FF9

View file

@ -192,12 +192,18 @@ var rootCmd = &cobra.Command{
repoOwner, repoName := actionCtx.Repo() repoOwner, repoName := actionCtx.Repo()
issues, _, err := forgeClient.ListIssues(forgejo.ListIssueOption{ myUser, _, err := forgeClient.GetMyUserInfo()
if err != nil {
log.Fatalln(err)
}
issues, _, err := forgeClient.ListRepoIssues(repoOwner, repoName, forgejo.ListIssueOption{
State: forgejo.StateOpen, State: forgejo.StateOpen,
ListOptions: forgejo.ListOptions{ ListOptions: forgejo.ListOptions{
Page: -1, Page: -1,
}, },
Type: forgejo.IssueTypeIssue, Type: forgejo.IssueTypeIssue,
CreatedBy: myUser.UserName,
}) })
if err != nil { if err != nil {
log.Fatalln(err) log.Fatalln(err)