mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-04-04 17:00:12 -05:00
Merge pull request #82 from appleboy/project
chore(project): add a single project response
This commit is contained in:
commit
735411d8c4
@ -602,6 +602,13 @@ func GetRepositoriesResponse(r *APIResponse) ([]Repository, error) {
|
||||
return m, err
|
||||
}
|
||||
|
||||
// GetRepositoryResponse cast project into structure
|
||||
func GetRrojectResponse(r *APIResponse) (Project, error) {
|
||||
var m Project
|
||||
err := mapstructure.Decode(r.Values, &m)
|
||||
return m, err
|
||||
}
|
||||
|
||||
// GetRepositoryResponse cast Repositories into structure
|
||||
func GetRepositoryResponse(r *APIResponse) (Repository, error) {
|
||||
var m Repository
|
||||
|
Loading…
x
Reference in New Issue
Block a user