diff --git a/SourceGitlab/SourceGitlab.php b/SourceGitlab/SourceGitlab.php index 5a2da60..ccaaa2c 100644 --- a/SourceGitlab/SourceGitlab.php +++ b/SourceGitlab/SourceGitlab.php @@ -345,14 +345,17 @@ foreach( $p_json->parent_ids as $t_parent ) { $t_parents[] = $t_parent; } - + # Message will be replaced by title in gitlab version earlier than 7.2 + $t_message = ( !property_exists( $p_json, 'message' ) ) + ? $p_json->title + : $p_json->message; $t_changeset = new SourceChangeset( $p_repo->id, $p_json->id, $p_branch, date( 'Y-m-d H:i:s', strtotime( $p_json->authored_date ) ), $p_json->author_name, - $p_json->message + $t_message ); if ( count( $p_json->parents ) > 0 ) {