-
-
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
Add repo mirror sync API endpoint #1508
Conversation
LGTM Small concise PRs that does one thing only ❤️ |
routers/api/v1/repo/repo.go
Outdated
} | ||
|
||
go models.MirrorQueue.Add(repo.ID) | ||
ctx.Status(202) |
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.
I'd go with 200 or 201 here. 202 Accepted
doesn't make any sense to me :)
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.
I found many place 202 and don't know the difference between 200, 201 and 202.
LGTM wait CI build. |
Let L-G-T-M WORK! |
ready to merge (but still lacks unit test for being considered a perfect PR :) |
First stab at the API, please bear with me :)
Add mirror sync endpoint to the Api adopted from Gogs.
/repos/:owner/:repo/mirror-sync