Coder Social home page Coder Social logo

gitlab-api's Introduction

gitlab-api

A small and self-contained shell script with convenience functions to communicate with the Gitlab API.

Installation

Download the script, make it executable and place it within your PATH:

curl -Ls https://raw.githubusercontent.com/docdnp/gitlab-api/main/gitlab-api -o gitlab-api
chmod +x gitlab-api

How to use

Ideally you start using:

gitlab-api init

Then you can call one of the commands described in gitlab-api's documentation:

Usage: gitlab-api <cmd> <args>
  query Gitlab API

 Docs:
   https://docs.gitlab.com/ee/api/rest

 Commands:
   allgroups                           return all groups
   allparents        <id> <chain>      return all parent ids starting by group <id> prepending <chain>
   allprojects                         return all projects
   api               <endpoint>        return API result for endpoint
   filter            <args>            return all matches where args build an arg1|arg2|...|argN
   forall            <cmd> <args>      call <cmd> with <args> for every input line (reference line in args with {})
   gron.filter       <args>            combine gron and filter <args>
   gron.grep         <args>            combine gron and grep <args>
   group.allrepos    <id>              return all repos under group with <id> (recursively)
   group.info        <id>              return group object of group with <id>
   group.repos       <id>              return all repos under group with <id>
   group.subgroups   <id>              return all subgroups under group with <id>
   help                                print this help text
   id                                  return digits after '=' in "path = id"
   init                                create configuration file ~/.glapi/glapi.conf
   project.info      <id>              return project object of project with <id>
   project.vars      <name>  <cifile>  return all CI variable of project <name> with <cifile:-.gitlab-ci.yml>
   rootgroup         <groupname>       return root group id of all projects in <groupname>
   search            <scope> <search>  return all items of <scope> (groups,projects) matching <search>

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.