Notify reg-suit result to GitLab repository
npm install reg-notify-gitlab-pluginreg-suit plugin to send notification the testing result to your GitLab repository.
Installing this plugin, reg-suit comments to your Merge Request.
``sh`
npm i reg-notify-gitlab-plugin -D
reg-suit prepare -p notify-gitlab
`ts`
{
projectId: string;
privateToken: string;
gitlabUrl?: string;
commentTo?: "note" | "description" | "discussion";
shortDescription?: boolean;
}
- projectId - _Required_ - Your GitLab project id. You can get this id via https://gitlab.com/ page.privateToken
- - _Required_ - Your GitLab API token. If you want more detail, see Personal access tokens doc.gitlabUrl
- - _Optional_ - Set if you host your GitLab instance. Default: https://gitlab.comcommentTo
- - _Optional_ - How this plugin comments to MR. If "note", it posts or puts the comment as a MR's note. if "description", your MR's description gets updated. If "discussion", it posts or puts the comment as a MR's _resolvable_ note. Default: "note".shortDescription
- - _Optional_ Returns a small table with the item counts.
Example:
| 🔴 Changed | ⚪️ New | 🔵 Passing |
| ---------- | ------- | ---------- |
| 3 | 4 | 120 |
If you run reg-suit on GitLab CI, this plugin detect gitlabUrl and projectId values from pre-declared GitLab CI environment values.projectId`
So you can skip