Skip to content
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

Merged
merged 3 commits into from Apr 19, 2017
Merged

Conversation

cez81
Copy link
Contributor

@cez81 cez81 commented Apr 18, 2017

First stab at the API, please bear with me :)
Add mirror sync endpoint to the Api adopted from Gogs.
/repos/:owner/:repo/mirror-sync

@cez81 cez81 changed the title API: Add repo mirror sync endpoint Add repo mirror sync API endpoint Apr 18, 2017
@lunny lunny added this to the 1.2.0 milestone Apr 18, 2017
@lunny lunny added modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Apr 18, 2017
@bkcsoft
Copy link
Member

bkcsoft commented Apr 19, 2017

LGTM

Small concise PRs that does one thing only ❤️

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 19, 2017
}

go models.MirrorQueue.Add(repo.ID)
ctx.Status(202)
Copy link
Member

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 :)

https://http.cat/202

Copy link
Member

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.

@appleboy
Copy link
Member

LGTM wait CI build.

@bkcsoft
Copy link
Member

bkcsoft commented Apr 19, 2017

Let L-G-T-M WORK!

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 19, 2017
@strk
Copy link
Member

strk commented Apr 19, 2017

ready to merge (but still lacks unit test for being considered a perfect PR :)

@lunny lunny merged commit f995bcc into go-gitea:master Apr 19, 2017
@cez81 cez81 deleted the api_sync_mirror branch April 19, 2017 12:03
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants