fix listing repo issues
All checks were successful
Gosec Check / Gosec Check (push) Successful in 53s
All checks were successful
Gosec Check / Gosec Check (push) Successful in 53s
This commit is contained in:
parent
b8c45e319c
commit
f1f461ec82
1 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue