This repository was archived by the owner on Aug 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 132132 this . baseUrl = location . protocol + '//' + location . host ;
133133 this . baseApiUrl = this . baseUrl + '/api/v4/' ;
134134 this . userAuthenticated = this . isUserAuthenticated ( ) ;
135+ this . pipelineFeatureEnabled = this . isPipelineFeatureEnabled ( ) ;
135136 this . apiClient = new GitLabApiClient ( this . baseApiUrl , this . getCsrfToken ( ) ) ;
136137
137138 this . currentMergeRequestIds = this . getCurrentMergeRequestIds ( ) ;
184185 return document . querySelector ( '.navbar-nav .header-user' ) ? true : false ;
185186 }
186187
188+ /**
189+ * Determines if the project do uses the Gitlab "pipeline" feature.
190+ */
191+ isPipelineFeatureEnabled ( ) {
192+ return document . querySelector ( '.nav-sidebar .shortcuts-pipelines' ) ? true : false ;
193+ }
194+
187195 /**
188196 * Gets all Merge Requests IDs that are currently displayed.
189197 */
Original file line number Diff line number Diff line change 11MANIFEST_FILE = {
22 'manifest_version' : 2 ,
33 'name' : 'GitLab Merge Requests lists enhancer' ,
4- 'version' : '1.5 .0' ,
4+ 'version' : '1.6 .0' ,
55 'description' : 'An extension that enhance all Merge Requests lists on any instance of Gitlab and GitLab.com.' ,
66 'homepage_url' : 'https://github.com/EpocDotFr/gitlab-merge-requests-lists-enhancer' ,
77 'author' : 'Maxime \' Epoc\' G.' ,
You can’t perform that action at this time.
0 commit comments