Git Product home page Git Product logo

mozaik-ext-gitlab's Introduction

Mozaïk GitLab widgets

License Travis CI NPM version Coverage Status widget count

This repository contains some widgets to use with Mozaïk.

Sample gitlab dashboard

You can see a live demo of this extension here

Deploy

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

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

Project

Show GitLab project info.

Gitlab project

parameters

key required description
project yes ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    Project
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

Project Members

Show GitLab project members.

Gitlab project members

parameters

key required description
project yes ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    ProjectMembers
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab Branches

Show GitLab project branches.

Gitlab project branches

parameters

key required description
project yes ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    Branches
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

LatestProjectPipeline

Show details about latest project pipeline.

LatestProjectPipeline

parameters

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

usage

- extension:         gitlab
  widget:            LatestProjectPipeline
  project:           gitlab-org/gitlab-runner
  gitRef:            master
  hideCommitMessage: false
  columns:           2
  rows:              1
  x:                 0
  y:                 0

GitLab Job Histogram

Show GitLab project job histogram.

Gitlab project job histogram

parameters

key required description
project yes ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    JobHistogram
  project:   gitlab-org/gitlab-ce
  columns:   2
  rows:      1
  x:         0
  y:         0

GitLab Job History

Show GitLab project job history.

Gitlab project job history

parameters

key required description
project yes ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    JobHistory
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab Project Contributors

Show GitLab project contributors.

Gitlab project contributors

parameters

key required description
project yes ID or NAMESPACE/PROJECT_NAME of a project

usage

- extension: gitlab
  widget:    ProjectContributors
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab labels bubble chart

Show GitLab project's labels stats using a bubble chart.

Gitlab labels bubble chart

parameters

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

usage

- extension: gitlab
  widget:    LabelsBubble
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab labels pie

Show GitLab project's labels stats using a pie chart.

Gitlab labels pie

parameters

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

usage

- extension: gitlab
  widget:    LabelsPie
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

GitLab labels tree map

Show GitLab project's labels stats using a tree map chart.

Gitlab labels tree map

parameters

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

usage

- extension: gitlab
  widget:    LabelsTreemap
  project:   gitlab-org/gitlab-ce
  columns:   1
  rows:      1
  x:         0
  y:         0

mozaik-ext-gitlab's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mozaik-ext-gitlab's Issues

can't integrate gitlab with Mozaik

item info notes
node version v 4.2.6 output from node --version
npm version 3.5.2 output from npm --version
mozaik-ext-gitlab version 0.2.1 available in project's package.json
mozaik version 1.4.4 available in project's package.json
mozaik-demo version v1 version of the demo used, depends on which method you used to setup your Mozaïk dashboard
component name of the extension's component or client if it's related to the extension's client
browser browser used, applyable if the issue is not related to the client

Expected behavior

info: registered API 'mozaik' (mode: poll)
info: registered API 'github' (mode: poll)
info: registered API 'travis' (mode: poll)
info: registered API 'gitlab' (mode:poll)
info: serving static contents from /home/ubuntu/mozaik-demo/build
info: Mozaïk server listening at http://0.0.0.0:5000

Actual behavior

info: registered API 'mozaik' (mode: poll)
info: registered API 'github' (mode: poll)
info: registered API 'travis' (mode: poll)
info: serving static contents from /home/ubuntu/mozaik-demo/build
info: Mozaïk server listening at http://0.0.0.0:5000.

Steps to reproduce

I am trying out mozaik dashboard. I am having hard time trying to register the gitlab/jenkins api. Github extension came with the demo dashboard so that works.
I can't find any documents on how to integrate other extensions with mozaik.

  1. I tried with npm install mozaik-ext-gitlab.
  2. i also tried by declaring it directly in package.json
"dependencies": {
    "babel-preset-es2015": "6.6.0",
    "babel-preset-react": "6.5.0",
    "babel-register": "6.7.2",
    "dotenv": "^0.5.1",
    "gulp": "^3.9.0",
    "lodash": "^3.10.0",
    "mozaik": "1.4.4",
    "mozaik-ext-github": "1.2.2",
    "mozaik-ext-jenkins": "1.2.0",
    "mozaik-ext-gitlab": "0.2.1",
    "mozaik-ext-time": "1.1.0",
    "react": "^0.13.3"
  },

How do i get gitlab and jenkins extensions working? or get them registered ?

I have .env file with GITLAB_API_TOKEN and GITLAB_BASE_URL

Gauge Widget : Filter on Opened Merge Request

item info notes
node version v5.0.0 output from node --version
npm version 3.3.9 output from npm --version
mozaik-ext-gitlab version ^0.1.0 available in project's package.json
mozaik version 1.4.4 available in project's package.json
mozaik-demo version version of the demo used, depends on which method you used to setup your Mozaïk dashboard
component name of the extension's component or client if it's related to the extension's client
browser Chrome browser used, applyable if the issue is not related to the client

Expected behavior

The GitLab Merge Requests Gauge widget only counts opened Merge requests

Actual behavior

The GitLab Merge Requests Gauge widget counts all Merge Requests

Solution

http://docs.gitlab.com/ce/api/merge_requests.html#list-merge-requests

GET /projects/:id/merge_requests?state=opened

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.