diff --git a/api_response.go b/api_response.go index cecc357..eec5d95 100644 --- a/api_response.go +++ b/api_response.go @@ -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