-
Notifications
You must be signed in to change notification settings - Fork 30
feat(api/repo): add ability to sort by latest #611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #611 +/- ##
==========================================
+ Coverage 55.06% 55.07% +0.01%
==========================================
Files 194 194
Lines 15704 15728 +24
==========================================
+ Hits 8647 8662 +15
- Misses 6697 6704 +7
- Partials 360 362 +2
|
cognifloyd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I'm not sure what you can do (if anything) about Github's "Code scanning" warning: "Database query built from user-controlled sources" since that's how it was before.
jbrockopp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
wass3r
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super minor suggestion. otherwise, looks good
| // name: sort_by | ||
| // description: How to sort the results | ||
| // type: string | ||
| // default: name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add enum here? it can really only be name or latest right?
see example here:
Lines 43 to 46 in 61358d2
| // enum: | |
| // - org | |
| // - repo | |
| // - shared |
jbrockopp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Part of the effort for go-vela/community#343
GetOrgReposfunction:sort_by