Skip to content

Commit 887a22e

Browse files
committed
check merged only and sort by updatedAt
1 parent 8d3a171 commit 887a22e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generator/activities/activities.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (a *Activities) Get(ctx context.Context, w io.Writer, usernames []string, s
8181
cbs := []source.PullRequestCallback{}
8282
if !last.IsZero() {
8383
cbs = append(cbs, func(pr *source.PullRequest) bool {
84-
return pr.CreatedAt.After(last)
84+
return pr.MergedAt.After(last)
8585
})
8686
}
8787

generator/charts/charts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (a *Charts) Get(ctx context.Context, w io.Writer, title string, usernames [
125125
for i, username := range usernames {
126126
prs, err := a.source.PullRequests(ctx, username,
127127
states,
128-
source.IssueOrderFieldCreatedAt, source.OrderDirectionDesc, size,
128+
source.IssueOrderFieldUpdatedAt, source.OrderDirectionDesc, size,
129129
cbs...)
130130
if err != nil {
131131
return fmt.Errorf("list PullRequests %q: %w", username, err)

0 commit comments

Comments
 (0)