-
Notifications
You must be signed in to change notification settings - Fork 146
Add branch representation and API calls #15
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
Conversation
Thanks your PR... but Gogs does not provide this info at all currently... which means no use of this APIs. |
The goal is to add it like https://github.com/gogits/gogs/blob/9cd16c5b12d093dd694e146d6c845ee4c405c774/routers/api/v1/user/keys.go.
|
I coudl also only return the name attribute for the API response and don't have to rely on API struc representation. |
This PR will remain open until server side is implemented :D |
package gogs | ||
|
||
type Branch struct { | ||
name string `json:"name"` |
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.
The first letter of fields must be upper case.
Related wiki page (draft): https://gist.github.com/sapk/df64347ff218baf4a277 |
Add branch representation and API calls
@sapk is that really a POST to GET data? EDIT: More specifically, the wiki-page-draft you linked says |
Sorry bad copy-paste in the draft ^^ |
Reenable linter since it is happy
Needed for gogs/gogs#2410
The representation should be near Github API :
https://developer.github.com/v3/repos/#list-branches