Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitlab-kanban

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab-kanban

GitLab Kanban Board Command Line Interface

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

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.

ParameterVariableDescription
-t/--tokenGITLAB_TOKENYou GitLab authorization token
-p/--projectGITLAB_PROJECTThe unique ID for your GitLab project
-u/--urlGETLAB_URLThe 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 nameDescription
nameThe label name
descriptionA description of the label
text_colorThe text color the label
colorThe 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 nameDescription
titleThe title of the issue
descriptionThe body of the issues
labelsA 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]'

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc