All Projects → phillipj → Gitlab Search

phillipj / Gitlab Search

Command line tool to search for contents in GitLab repositories

Programming Languages

reason
219 projects

Projects that are alternatives of or similar to Gitlab Search

Puzzlerbot
PDD manager which manages puzzles in issue/PR comments
Stars: ✭ 20 (-66.67%)
Mutual labels:  gitlab
Reason From The Very Beginning
Ocaml From The Very Beginning solved with Reason instead of Ocaml
Stars: ✭ 36 (-40%)
Mutual labels:  reasonml
Gitlab.visualstudio
GitLab Extension for Visual Studio
Stars: ✭ 48 (-20%)
Mutual labels:  gitlab
Bs React Intl Extractor
Extracts messages for localization from Reason source files.
Stars: ✭ 27 (-55%)
Mutual labels:  reasonml
Revery
⚡ Native, high-performance, cross-platform desktop apps - built with Reason!
Stars: ✭ 7,812 (+12920%)
Mutual labels:  reasonml
Pragma
Pragma is a self-hosted, open-source, personal note taking app.
Stars: ✭ 39 (-35%)
Mutual labels:  reasonml
Revery Playground
Live, interactive playground for Revery examples
Stars: ✭ 14 (-76.67%)
Mutual labels:  reasonml
Recontainers
[DEPRECATED] ReasonReact utilitary high order components
Stars: ✭ 54 (-10%)
Mutual labels:  reasonml
Linux Tutorial
《Java 程序员眼中的 Linux》
Stars: ✭ 7,757 (+12828.33%)
Mutual labels:  gitlab
Kdtool
Kubernetes deployment utility
Stars: ✭ 47 (-21.67%)
Mutual labels:  gitlab
React Rules Of Hooks Ppx
This ppx validates the rules of React hooks.
Stars: ✭ 34 (-43.33%)
Mutual labels:  reasonml
Cimonitor
Displays CI statuses on a dashboard and triggers fun modules representing the status!
Stars: ✭ 34 (-43.33%)
Mutual labels:  gitlab
Bsdoc
📚 Documentation Generator for BuckleScript
Stars: ✭ 43 (-28.33%)
Mutual labels:  reasonml
Lab
Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
Stars: ✭ 911 (+1418.33%)
Mutual labels:  gitlab
Reason App Shell Starter Kit
A simple App Shell starter kit that you can use to get started building your PWA with ReasonML & ReasonReact.
Stars: ✭ 49 (-18.33%)
Mutual labels:  reasonml
Reason Libvim
Reason API for libvim
Stars: ✭ 20 (-66.67%)
Mutual labels:  reasonml
Scm Backup
Makes offline backups of your cloud hosted source code repositories
Stars: ✭ 38 (-36.67%)
Mutual labels:  gitlab
Gitlab Notifications
👍 Notifications Center for GitLab
Stars: ✭ 55 (-8.33%)
Mutual labels:  gitlab
Git Req
Check out merge requests from your GitLab/GitHub hosted repositories from the command line with just the request number.
Stars: ✭ 50 (-16.67%)
Mutual labels:  gitlab
Beetle
Shake to create Bug Report on GitHub, GitLab and Azure DevOps!
Stars: ✭ 45 (-25%)
Mutual labels:  gitlab

GitLab Search CI Build Status

This is a command line tool that allows you to search for contents across all your GitLab repositories. That's something GitLab doesn't provide out of the box for non-enterprise users, but is extremely valuable when needed.

Prerequisites

  1. Install Node.js
  2. Create a personal GitLab access token with the read_api scope.

Installation

$ npm install -g gitlab-search

To finish the installation you need to configure the personal access token you've created previously:

$ gitlab-search setup <your personal access token>

That will create a .gitlabsearchrc file in the current directory. That configuration file can be placed in different places on your machine, valid locations are described in the rc package's README. You can decide where that file is saved when invoking the setup command, see more details in its help:

$ gitlab-search setup --help

Usage

Searching through all the repositories you've got access to:

$ gitlab-search [options] [command] <search-term>

Options:
  -V, --version                            output the version number
  -g, --groups <group-names>               group(s) to find repositories in (separated with comma)
  -f, --filename <filename>                only search for contents in given a file, glob matching with wildcards (*)
  -e, --extension <file-extension>         only search for contents in files with given extension
  -p, --path <path>                        only search in files in the given path
  -h, --help                               output usage information

Commands:
  setup [options] <personal-access-token>  create configuration file

Use with Self-Managed GitLab

To search a self-hosted installation of GitLab, setup has options for, among other things, setting a custom domain:

$ gitlab-search setup --help

Usage: setup [options] <personal-access-token>

create configuration file

Options:
  --ignore-ssl         ignore invalid SSL certificate from the GitLab API server
  --api-domain <name>  domain name or root URL of GitLab API server,
                       specify root URL (without trailing slash) to use HTTP instead of HTTPS (default: "gitlab.com")
  --dir <path>         path to directory to save configuration file in (default: ".")
  -h, --help           display help for command

Debugging

If something seems fishy or you're just curious what gitlab-search does under the hood, enabling debug logging helps:

$ DEBUG=1 gitlab-search here-is-my-search-term
Requesting: GET https://gitlab.com/api/v4/groups?per_page=100
Using groups: name-of-group1, name-of-group2
Requesting: GET https://gitlab.com/api/v4/groups/42/projects?per_page=100
Requesting: GET https://gitlab.com/api/v4/groups/1337/projects?per_page=100
Using projects: hello-world, my-awesome-website.com
Requesting: GET https://gitlab.com/api/v4/projects/666/search?scope=blobs&search=here-is-my-search-term
Requesting: GET https://gitlab.com/api/v4/projects/999/search?scope=blobs&search=here-is-my-search-term

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].