Skip to content

Conversation

@stratedge
Copy link
Contributor

Hey there,

Ran into an issue running Gitlab 7.10 where description was coming back from the API for merge requests, but description was not in the list of properties in Gitlab\Model\MergeRequest. As a result, Gitlab\Model\MergeRequest::fromArray (calling Gitlab\Model\AbstractModel::hydrate) was throwing an exception.

This pull request adds the description key to the list of properties in Gitlab\Model\MergeRequest.

It looks like the current documentation for the Gitlab API lists description as a field, so this shouldn't be a old API version issue, probably will be this way going forward. The list of properties I referenced is available here for review: http://doc.gitlab.com/ee/api/merge_requests.html#get-single-mr

Hope this helps!

Take care,
JB

m4tthumphrey added a commit that referenced this pull request Aug 13, 2015
Add description field to the MergeRequest model
@m4tthumphrey m4tthumphrey merged commit b98cca3 into GitLabPHP:master Aug 13, 2015
@m4tthumphrey
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants