Skip to content

Commit

Permalink
Merge pull request #82 from appleboy/project
Browse files Browse the repository at this point in the history
chore(project): add a single project response
  • Loading branch information
sanketjpatel authored Jan 31, 2024
2 parents 6e30c57 + 3d99df2 commit 735411d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 735411d

Please sign in to comment.