Merge pull request #82 from appleboy/project

chore(project): add a single project response
This commit is contained in:
Sanket Patel 2024-01-31 10:55:25 -05:00 committed by GitHub
commit 735411d8c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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