The gli package

[ Tags: bsd3, cli, library, program ] [ Propose Tags ]

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]

Properties

Versions 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.*), 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 BSD3
Copyright 2016 Mrinmoy Das
Author goromlagche
Maintainer mrinmoy.das91@gmail.com
Category CLI
Home page https://github.com/goromlagche/gli#readme
Source repository head: git clone https://github.com/goromlagche/gli
Uploaded Mon Jan 2 08:45:23 UTC 2017 by goromlagche
Updated Tue Jan 3 05:04:49 UTC 2017 by goromlagche to revision 1
Distributions NixOS:0.0.1.1
Executables gli
Downloads 142 total (27 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2017-01-02 [all 3 reports]
Hackage Matrix CI

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

For package maintainers and hackage trustees


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

  2. 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
    
  3. Fetch all open PR related info

     $ gli prs