Skip to content

Commit

Permalink
check merged only and sort by updatedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Nov 19, 2024
1 parent 8d3a171 commit 887a22e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator/activities/activities.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (a *Activities) Get(ctx context.Context, w io.Writer, usernames []string, s
cbs := []source.PullRequestCallback{}
if !last.IsZero() {
cbs = append(cbs, func(pr *source.PullRequest) bool {
return pr.CreatedAt.After(last)
return pr.MergedAt.After(last)
})
}

Expand Down
2 changes: 1 addition & 1 deletion generator/charts/charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (a *Charts) Get(ctx context.Context, w io.Writer, title string, usernames [
for i, username := range usernames {
prs, err := a.source.PullRequests(ctx, username,
states,
source.IssueOrderFieldCreatedAt, source.OrderDirectionDesc, size,
source.IssueOrderFieldUpdatedAt, source.OrderDirectionDesc, size,
cbs...)
if err != nil {
return fmt.Errorf("list PullRequests %q: %w", username, err)
Expand Down

0 comments on commit 887a22e

Please sign in to comment.