gli: Tiny cli to fetch PR info from gitlab

[ bsd3, cli, library, program ] [ Propose Tags ] [ Report a vulnerability ]

A cli tool to fetch PR(pull request/merge request) related informations from gitlab. When someone runs this tool from inside a gitlab repository, it will list out open merge requests informations containing url, title, description, author, assignee, whether it has a WIP tag or not, status, branch name and both created_at, updated_at fields


[Skip to Readme]

Modules

  • Gli
    • Gli.Cli
    • Gli.Gitlab
    • Gli.Setup
    • Gli.Types

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1, 0.0.1.1
Dependencies aeson (>=0.11.2.1 && <0.12), attoparsec (>=0.13.1.0 && <0.14), base (>=4.9.0.0 && <4.10), bytestring (>=0.10.8.1 && <0.11), containers (>=0.5.7.1 && <0.6), friendly-time (>=0.4 && <0.5), gli (>=0.0.1.1 && <0.1), http-client (>=0.4.31.2 && <0.5), http-client-tls (>=0.2.4.1 && <0.3), http-conduit (>=2.1.11 && <2.2), network-uri (>=2.6.1.0 && <2.7), optparse-applicative (>=0.12.1.0 && <0.13), process (>=1.4.2.0 && <1.5), text (>=1.2.2.1 && <1.3), time (>=1.6.0.1 && <1.7), yaml (>=0.8.20 && <0.9) [details]
License BSD-3-Clause
Copyright 2016 Mrinmoy Das
Author goromlagche
Maintainer mrinmoy.das91@gmail.com
Revised Revision 1 made by goromlagche at 2017-01-03T05:04:49Z
Category CLI
Home page https://github.com/goromlagche/gli#readme
Source repo head: git clone https://github.com/goromlagche/gli
Uploaded by goromlagche at 2017-01-02T08:45:23Z
Distributions
Executables gli
Downloads 1976 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2017-01-02 [all 3 reports]

Readme for gli-0.0.1.1

[back to package description]

gli [WIP]

Goal is to fetch PR info etc.

Setup

  1. stack setup
  2. stack build
  3. stack exec which gli to get the binary path
  4. alias gli=binary_path

Flow

  1. Store the gitlab credentials on a file locally. (e.g. ~/.gli.yml)

sample file

    accounts:
      my_hosted_gitlab:
          key: abcd1234xyz
          url: https://gitlab.dev.my_hosted_gitlab.com/api/v3
      gitlab:
          key: xyz4321dcba
          url: https://gitlab.com/api/v3

You can get the credentials from https://gitlab.com/profile/account

  1. Setup gli for a git repo

This will create a repo specific gli.yml file, which will store all the information regarding the repo, and will also be checked out from git.

  $ cd my_gitlab_repo_path
  $ gli setup -f ~/.gli.yml
  $ cat gli.yml
  project:
    ssh_url_to_repo: git@gitlab.com:organization/repo_name.git
    name: repo_name
    id: 123
    description: 'killer app 42'
  masterFileConfig:
    key: gitlab
    file: /Users/goromlagche/.gli.yml
  1. Fetch all open PR related info
  $ gli prs