This repository contains some widgets to use with Mozaïk.
You can see a live demo of this extension here
This branch contains code for the version compatible with Mozaïk v2, if you're looking for v1, please use mozaik-1 branch.
- client configuration
- widgets
In order to use the Mozaïk gitlab extension, you must configure its client. Configuration is loaded from environment variables.
env key | required | default | description |
---|---|---|---|
GITLAB_BASE_URL | yes | gitlab API base url, eg. 'https://gitlab.com/api/v4 |
|
GITLAB_API_TOKEN | yes | gitlab API token |
Show GitLab project info.
key | required | description |
---|---|---|
project |
yes | ID or NAMESPACE/PROJECT_NAME of a project |
- extension: gitlab
widget: Project
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0
Show GitLab project members.
key | required | description |
---|---|---|
project |
yes | ID or NAMESPACE/PROJECT_NAME of a project |
- extension: gitlab
widget: ProjectMembers
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0
Show GitLab project branches.
key | required | description |
---|---|---|
project |
yes | ID or NAMESPACE/PROJECT_NAME of a project |
- extension: gitlab
widget: Branches
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0
Show details about latest project pipeline.
key | type | required | default | description |
---|---|---|---|---|
project |
{string} |
yes | ID or NAMESPACE/PROJECT_NAME of a project | |
gitRef |
{string} |
no | Get latest pipeline for a specific ref (branch, tag…) | |
hideCommitMessage |
{boolean} |
no | false |
Hide pipeline commit info |
- extension: gitlab
widget: LatestProjectPipeline
project: gitlab-org/gitlab-runner
gitRef: master
hideCommitMessage: false
columns: 2
rows: 1
x: 0
y: 0
Show GitLab project job histogram.
key | required | description |
---|---|---|
project |
yes | ID or NAMESPACE/PROJECT_NAME of a project |
- extension: gitlab
widget: JobHistogram
project: gitlab-org/gitlab-ce
columns: 2
rows: 1
x: 0
y: 0
Show GitLab project job history.
key | required | description |
---|---|---|
project |
yes | ID or NAMESPACE/PROJECT_NAME of a project |
- extension: gitlab
widget: JobHistory
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0
Show GitLab project contributors.
key | required | description |
---|---|---|
project |
yes | ID or NAMESPACE/PROJECT_NAME of a project |
- extension: gitlab
widget: ProjectContributors
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0
Show GitLab project's labels stats using a bubble chart.
key | required | default | description |
---|---|---|---|
project |
yes | n/a | ID or NAMESPACE/PROJECT_NAME of a project |
countBy |
yes | 'open_issues_count' |
Defines which count to use, must be one of: 'open_issues_count' , 'closed_issues_count' , 'open_merge_requests_count' |
title |
no | n/a | Overrides widget title |
- extension: gitlab
widget: LabelsBubble
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0
Show GitLab project's labels stats using a pie chart.
key | required | default | description |
---|---|---|---|
project |
yes | n/a | ID or NAMESPACE/PROJECT_NAME of a project |
countBy |
yes | 'open_issues_count' |
Defines which count to use, must be one of: 'open_issues_count' , 'closed_issues_count' , 'open_merge_requests_count' |
title |
no | n/a | Overrides widget title |
- extension: gitlab
widget: LabelsPie
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0
Show GitLab project's labels stats using a tree map chart.
key | required | default | description |
---|---|---|---|
project |
yes | n/a | ID or NAMESPACE/PROJECT_NAME of a project |
countBy |
yes | 'open_issues_count' |
Defines which count to use, must be one of: 'open_issues_count' , 'closed_issues_count' , 'open_merge_requests_count' |
title |
no | n/a | Overrides widget title |
- extension: gitlab
widget: LabelsTreemap
project: gitlab-org/gitlab-ce
columns: 1
rows: 1
x: 0
y: 0