Skip to main content

GitLab Kanban Board Command Line Interface

Project description

GitLab Kanban Board Command Line Interface

This project provides and command line interface for generating and manipulating Kanban boards on GitLab. It was built to help teams setting up their initial Kanban board with consistent labels and lists. It also has the ability to create stories that track assets.

Installation

pip install gitlab-kanban

Usage

You should set the following environment variables so that you don't have to specify them on the command line. This is particularly convenient when working in the same project for a while.

Parameter Variable Description
-t/--token GITLAB_TOKEN You GitLab authorization token
-p/--project GITLAB_PROJECT The unique ID for your GitLab project
-u/--url GETLAB_URL The GitLab url if not the default https://gitlab.com

By setting those environment variables you can eliminate the need for using -t, -p on every call.

You can us the --help flag to get help on all of the commands.

$ kanban --help

Usage: kanban [OPTIONS] COMMAND [ARGS]...

  GitLab Kanban Board Command Line Interface

Options:
  -t, --token TEXT       GitLab authorization token or set env GITLAB_TOKEN
                         [required]
  -p, --project TEXT     The GitLab project ID or set env GITLAB_PROJECT
                         [required]
  -u, --gitlab-url TEXT  GitLab URL [optional] defaults to https://gitlab.com
  --help                 Show this message and exit.

Commands:
  boards  Create, Get, Update, Delete Kanban Boards
  issues  Create, Get, Update, Delete Issues
  labels  Create, Get, Update, Delete Labels

Each command has a series of subcommands to create the various artifacts.

CSV Formats

These are the fields that are expected in each of the CSV files:

Labels

The columns for the labels CSV is as follows:

"name","description","text_color","color"
Column name Description
name The label name
description A description of the label
text_color The text color the label
color The background color the label

Refer to ./samples folder for examples

Boards

Boards in GitLab are a collection of lists that are associated with labels. The format for a board, therefore, is the same as a label. When creating a board you pss in a name for the board and a label.csv file that has the labels for the bard lists. Once this will be created for each label.

Refer to ./samples folder for examples

Issues

The columns for the issues CSV is as follows:

"title","description","labels"
Column name Description
title The title of the issue
description The body of the issues
labels A comma separated list of labels to assign to the issue

Refer to ./samples folder for examples

Development setup

This repository contains the configuration files needed by the Remote Container extension of Visual Studio Code that can be used with Docker Desktop to bring up a complete development environment simply by starting VSCode and choosing Restart in Container.

You can also create a development environment manually using a Python virtual environment (venv) and pip

python3 -m venv .venv
source .env/bin/activate
pip install -e '.[dev]'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab-kanban-0.0.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

gitlab_kanban-0.0.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file gitlab-kanban-0.0.1.tar.gz.

File metadata

  • Download URL: gitlab-kanban-0.0.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for gitlab-kanban-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d254d70dadf2fd2ef9fe6851036fa1bfd229b269c60f996634dea63de90ae778
MD5 d983226994877f72bb2aae223fb1499c
BLAKE2b-256 a58b82cab864108adef59a9525cc8cb03e845c404fd0f0a2917258bb0a3efbfa

See more details on using hashes here.

File details

Details for the file gitlab_kanban-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gitlab_kanban-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac491d7a470675c0a67317540aefd8a678d464097f3bed9afd3b5c6207adb1a3
MD5 7c243d25b1d51e865b1bdaac260a4181
BLAKE2b-256 ece2ef317b357c9c1d95a19bec996ce388251c740bb11bc8700622daa525152f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page