diff --git a/cmd/root.go b/cmd/root.go index b28d3c0..1c94b53 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -192,12 +192,18 @@ var rootCmd = &cobra.Command{ 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, ListOptions: forgejo.ListOptions{ Page: -1, }, - Type: forgejo.IssueTypeIssue, + Type: forgejo.IssueTypeIssue, + CreatedBy: myUser.UserName, }) if err != nil { log.Fatalln(err)