vue-gitlab-review-toolbar
Vue.js plugin for Gitlab Review Toolbar
This feature from Gitlab is undocumented. You can find it after setting up a review app in merge request.
Component code is accessible here.
Setup
- Add the
@dansmaculotte/vue-gitlab-review-toolbar
dependency with yarn
or npm
to your project - Configure it:
import Vue from 'vue'
import GitlabReviewToolbar from '@dansmaculotte/vue-gitlab-review-toolbar'
Vue.use(GitlabReviewToolbar, {
projectId: 'GITLAB_PROJECT_ID',
projectPath: 'GITLAB_PROJECT_PATH',
mergeRequestId: 'GITLAB_MERGE_REQUEST_ID',
mergeRequestUrl: 'YOUR_GITLAB_URL',
personalAccessToken: 'YOUR_PERSONAL_ACCESS_TOKEN'
})
Usage
Options
projectId
projectPath
mergeRequestId
mergeRequestUrl
- Type:
String
- Default:
'https://gitlab.com'
personalAccessToken
Development
- Clone this repository
- Install dependencies using
yarn install
or npm install
- Start development server using
npm run dev
License
MIT License