Simple API server providing capability to search through given Gitlab instance for any arbitrary text
The scope of the project is to simplify searching through (mostly self hosted) instances of Gitlab. Main use cases are searching through all the projects, or the projects satisfying some pattern.
docker run \
-e GITLAB_API=https://YOUR_SERVER_HERE/api/v4 \
-e GITLAB_TOKEN=XXXXXXXYYYYYYYY \
--rm -p 8080:8080 \
dodalovic/gitlab-search
$ curl --url 'http://localhost:8080/search?searchTerm=SOME_ARBITRARY_TEXT' \
--header 'accept: application/json'
API will be available via http://localhost:8080/search
Query params:
searchTerm
- mandatory, text you want to search forpattern
- optional - search through projects matching given pattern
An example call:
curl --url 'http://localhost:8080/search?searchTerm=theTextToSearchFor&pattern=service' \
--header 'accept: application/json'
will search through all the projects containing service
in their name
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Dusan Odalovic - @odalinjo - dodalovic@gmail.com
Project Link: https://github.com/dodalovic/gitlab-search