Giter Site home page Giter Site logo

lab's Introduction

lab

Build Status Coverage Status

lab is a cli client of gitlab like hub.

Installation

Go developer

Please getting source code and build.

go get github.com/lighttiger2505/lab
make ensure
make install

Binary download

Please run the install script:

curl -s https://raw.githubusercontent.com/lighttiger2505/lab/master/install.sh | bash

The script installs the lab command in /usr/local/bin. For more details, see the install.sh source code.

Features

Usage: lab [--version] [--help] <command> [<args>]

Available commands are:
    browse                    Browse project page
    issue                     Create and Edit, list a issue
    issue-template            List issue template
    job                       List job
    lint                      validate .gitlab-ci.yml
    merge-request             Create and Edit, list a merge request
    merge-request-template    List merge request template
    mr                        Create and Edit, list a merge request
    pipeline                  List pipeline, List pipeline jobs
    project                   List project
    project-variable          List project level variables
    runner                    List CI/CD Runner
    user                      List user

Usage

  1. change directory gitlab repository
    • lab command accesses gitlab quickly by useing repository infomation
    $ cd {gitlab repository}
  2. launch lab command
    $ lab issue
  3. please input personal access token
    • use the lab command you need Personal access take look here(https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token)
    Please input GitLab private token : {your token}

Feature

Browse

Open gitlab pages on brwoser.

# Browse project page
$ lab browse

# Browse project file
$ lab browse ./README.md

# Browse sub page
$ lab browse -s issues

Operations to Issue and Merge Request

Many operations can be done with simple input.

# List issue
lab issue

# Browse issue
lab issue -b {issue ii}

# Show issue
lab issue {issue id}

# Create issue
lab issue -e

# Update issue
lab issue {issue id} -e

Configuration

auto create configuration file ~/.config/lab/config.yml when launch lab command

Sample

default_profile: gitlab.com
profiles:
  gitlab.com:
    token: ********************
    default_group: hoge
    default_project: hoge/soge
    default_assignee_id: 123
  gitlab.ssl.foo.jp:
    token: ******************** 
    default_group: foo
    default_project: foo/bar
    default_assignee_id: 456

ToDos

  • variable command
    • Project-level Variables
    • Group-level Variables
  • use template
    • issue template
    • merge request template
  • pipeline actions
    • cancel
    • retry
  • label command
  • project-member command
  • workflow automation command
    • create
      • create new project and cloning repository
    • fork
      • create fork project and cloning repository
    • flow
      • create issue and create WIP: merge request

Similar tool

There are similar tools. If you prefer modern style commands like docker. This tool may be better.

Note: This tool and lighttiger2505/lab are completely different tools

lab's People

Contributors

lighttiger2505 avatar mattn avatar mschaaf avatar oxr463 avatar perlun avatar

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.