Skip to content

Commit

Permalink
fix: add opt Sort
Browse files Browse the repository at this point in the history
  • Loading branch information
wowq committed Jun 17, 2022
1 parent 3e58d4f commit 3a606e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions scm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ type (
Size int
From string
To string
Sort string
}

// GraphQLService the API to performing GraphQL queries
Expand Down
3 changes: 3 additions & 0 deletions scm/driver/gitlab/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func encodeListOptions(opts *scm.ListOptions) string {
if opts.To != "" {
params.Set("to", opts.To)
}
if opts.Sort != "" {
params.Set("sort", opts.Sort)
}
return params.Encode()
}

Expand Down

0 comments on commit 3a606e3

Please sign in to comment.