-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
GitHub API Compliance Fixes #227
Conversation
LGTM |
LGTM. |
@bkcsoft would it not be technically a 4th and 5th opinion? 1st being yours, 2nd being @0xBAADF00D and 3rd being me... unless I'm not an opinion ._. |
@LefsFlarey I didn't count myself 😆 |
@bkcsoft oh ok. .-. |
@@ -244,6 +244,20 @@ func Get(ctx *context.APIContext) { | |||
ctx.JSON(200, repo.APIFormat(&api.Permission{true, true, true})) | |||
} | |||
|
|||
func GetByID(ctx *context.APIContext) { | |||
repo, err := models.GetRepositoryByID(ctx.ParamsInt64(":id")) |
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.
golint
Current coverage is 3.02% (diff: 0.00%)@@ master #227 diff @@
========================================
Files 33 33
Lines 8106 8120 +14
Methods 0 0
Messages 0 0
Branches 0 0
========================================
Hits 246 246
- Misses 7840 7854 +14
Partials 20 20
|
@lunny done :) |
b6ff427
to
b17506c
Compare
rebased and fixed conflicts :) |
@lunny could you review again? 🙂 |
LGTM |
But maybe you need to rebase as the drone push failed with matrix builds. |
push failed |
b17506c
to
e6cfccd
Compare
682cd9a
to
e8e0539
Compare
Now it should be fine :D |
This fixes a few API-bugs
Fixes!
?access_token=[...]
?state=all
to fetch all issues (for said repo)/repositories/:id
(undocumented feature, but it's used by OctoKit 😒 )Backwards Compatability Breakage!
label.Color
is no longer prefixed with#
(since GH doesn't do that)Related Issue: #64
I'm sure there are more Gogs-issues that I'm closing with this PR, but I'm to lazy ATM to look them up 😆