Process only merged PRs
This commit is contained in:
parent
f11cd26a09
commit
550ea90c82
|
@ -51,7 +51,7 @@ func (ge *Gitea) Generate() (string, []Entry, error) {
|
||||||
PageSize: perPage,
|
PageSize: perPage,
|
||||||
},
|
},
|
||||||
Milestones: []string{ge.Milestone},
|
Milestones: []string{ge.Milestone},
|
||||||
State: "closed",
|
State: gitea.StateClosed,
|
||||||
Type: gitea.IssueTypePull,
|
Type: gitea.IssueTypePull,
|
||||||
}
|
}
|
||||||
if ge.Issues {
|
if ge.Issues {
|
||||||
|
@ -64,6 +64,10 @@ func (ge *Gitea) Generate() (string, []Entry, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, issue := range issues {
|
for _, issue := range issues {
|
||||||
|
if options.Type == gitea.IssueTypePull && issue.PullRequest != nil && !(issue.PullRequest.HasMerged) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if issue != nil {
|
if issue != nil {
|
||||||
entry := convertToEntry(*issue)
|
entry := convertToEntry(*issue)
|
||||||
entries = append(entries, entry)
|
entries = append(entries, entry)
|
||||||
|
|
Loading…
Reference in New Issue