Skip to content

Conversation

rubenv
Copy link
Contributor

@rubenv rubenv commented Oct 28, 2015

Relates to gogs/gogs#1843

@@ -82,3 +82,29 @@ func (c *Client) DeleteRepo(owner, repo string) error {
_, err := c.getResponse("DELETE", fmt.Sprintf("/repos/%s/%s", owner, repo), nil, nil)
return err
}

type MigrateRepoOption struct {
CloneAddr string `json:"clone_addr" binding:"Required"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think binding tag is not needed in this case :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used higher up in the file as well, so I'm following convention here :-)

Want me to remove it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my mistake...

@unknwon
Copy link
Member

unknwon commented Oct 29, 2015

Thanks!

unknwon added a commit that referenced this pull request Oct 29, 2015
Add binding for POST /repos/migrate
@unknwon unknwon merged commit 1030bf8 into gogs:master Oct 29, 2015
guyzmo pushed a commit to guyzmo/go-gogs-client that referenced this pull request May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants