Skip to content

Add repo mirror sync API endpoint - #1508

Merged
lunny merged 3 commits into
go-gitea:masterfrom
cez81:api_sync_mirror
Apr 19, 2017
Merged

Add repo mirror sync API endpoint#1508
lunny merged 3 commits into
go-gitea:masterfrom
cez81:api_sync_mirror

Conversation

@cez81

@cez81 cez81 commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

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 kind/api type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Apr 18, 2017
@bkcsoft

bkcsoft commented Apr 19, 2017

Copy link
Copy Markdown
Contributor

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
Comment thread routers/api/v1/repo/repo.go Outdated
}

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Member

LGTM wait CI build.

@bkcsoft

bkcsoft commented Apr 19, 2017

Copy link
Copy Markdown
Contributor

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

strk commented Apr 19, 2017

Copy link
Copy Markdown
Member

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. 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.

6 participants