diff --git a/service/gitea.go b/service/gitea.go index 3c08456..55ece07 100644 --- a/service/gitea.go +++ b/service/gitea.go @@ -51,7 +51,7 @@ func (ge *Gitea) Generate() (string, []Entry, error) { PageSize: perPage, }, Milestones: []string{ge.Milestone}, - State: "closed", + State: gitea.StateClosed, Type: gitea.IssueTypePull, } if ge.Issues { @@ -64,6 +64,10 @@ func (ge *Gitea) Generate() (string, []Entry, error) { } for _, issue := range issues { + if options.Type == gitea.IssueTypePull && issue.PullRequest != nil && !(issue.PullRequest.HasMerged) { + continue + } + if issue != nil { entry := convertToEntry(*issue) entries = append(entries, entry)