File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1313
1414class SourceGitlabPlugin extends MantisSourceGitBasePlugin {
1515
16- const PLUGIN_VERSION = '2.0.1 ' ;
16+ const PLUGIN_VERSION = '2.0.2 ' ;
1717 const FRAMEWORK_VERSION_REQUIRED = '2.0.0 ' ;
1818
19+ /**
20+ * GitLab API version, used to build the API URI
21+ * @see api_uri()
22+ */
23+ const API_VERSION = 'v4 ' ;
24+
1925 public function register () {
2026 $ this ->name = plugin_lang_get ( 'title ' );
2127 $ this ->description = plugin_lang_get ( 'description ' );
@@ -183,7 +189,7 @@ public function update_repo( $p_repo ) {
183189
184190 private function api_uri ( $ p_repo , $ p_path ) {
185191 $ t_root = $ p_repo ->info ['hub_root ' ];
186- $ t_uri = $ t_root . '/api/v3 / ' . $ p_path ;
192+ $ t_uri = $ t_root . '/api/ ' . self :: API_VERSION . ' / ' . $ p_path ;
187193
188194 if ( isset ( $ p_repo ->info ['hub_app_secret ' ] ) ) {
189195 $ t_access_token = $ p_repo ->info ['hub_app_secret ' ];
Original file line number Diff line number Diff line change @@ -145,6 +145,13 @@ Includes all changes and fixes from 1.5.0.
145145
146146# Releases for MantisBT 1.3
147147
148+ ## [ 1.5.6] - 2018-06-13
149+
150+ ### Fixed
151+
152+ - GitLab: use API v4
153+ [ #270 ] ( https://github.com/mantisbt-plugins/source-integration/pull/270 )
154+
148155## [ 1.5.5] - 2018-04-09
149156
150157### Fixed
@@ -339,7 +346,7 @@ Includes all changes and fixes from master-1.2.x branch, up to commit
339346
340347
341348[ Unreleased 2.x ] : https://github.com/mantisbt-plugins/source-integration/compare/v2.1.1...HEAD
342- [ Unreleased 1.x ] : https://github.com/mantisbt-plugins/source-integration/compare/v1.5.5 ...master-1.3.x
349+ [ Unreleased 1.x ] : https://github.com/mantisbt-plugins/source-integration/compare/v1.5.6 ...master-1.3.x
343350
344351[ 2.1.1 ] : https://github.com/mantisbt-plugins/source-integration/compare/v2.1.0...v2.1.1
345352[ 2.1.0 ] : https://github.com/mantisbt-plugins/source-integration/compare/v2.0.3...v2.1.0
@@ -350,6 +357,7 @@ Includes all changes and fixes from master-1.2.x branch, up to commit
350357[ 2.0.0-beta.2 ] : https://github.com/mantisbt-plugins/source-integration/compare/v2.0.0-beta.1...v2.0.0-beta.2
351358[ 2.0.0-beta.1 ] : https://github.com/mantisbt-plugins/source-integration/compare/v1.5.2...v2.0.0-beta.1
352359
360+ [ 1.5.6 ] : https://github.com/mantisbt-plugins/source-integration/compare/v1.5.5...v1.5.6
353361[ 1.5.5 ] : https://github.com/mantisbt-plugins/source-integration/compare/v1.5.4...v1.5.5
354362[ 1.5.4 ] : https://github.com/mantisbt-plugins/source-integration/compare/v1.5.3...v1.5.4
355363[ 1.5.3 ] : https://github.com/mantisbt-plugins/source-integration/compare/v1.5.2...v1.5.3
You can’t perform that action at this time.
0 commit comments