Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gafawork/scopre-repository
Easyfind for Gitlab
https://github.com/gafawork/scopre-repository
git gitlab
Last synced: about 2 months ago
JSON representation
Easyfind for Gitlab
- Host: GitHub
- URL: https://github.com/gafawork/scopre-repository
- Owner: gafawork
- License: apache-2.0
- Created: 2024-07-14T12:09:00.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T11:49:10.000Z (2 months ago)
- Last Synced: 2024-11-19T12:52:36.770Z (2 months ago)
- Topics: git, gitlab
- Language: Java
- Homepage:
- Size: 361 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scopre Repository for Gitlab
Java Library for search in the GitLab repositoryJava library for searching Gitlab Server repositories.
---
## GitLab Server Version Support
gitlab4j-api which supports versions 11.0+ of Gitlab Community Edition and Gitlab Enterprise Edition
---
### Generate Jar
```
mvn clean install
```---
### Using Scopre Repository| parameter | functionality | sample |
|-----------------------------|--------------------------------------------------------------|------------------------------------------------------|
| -d, --debug | debug | -d |
| -t, --token | token [REQUIRED] | -t glpat-x3Udy1PSS5_AgRwjUDu |
| -f, --filter | filter files | -f "pom.xml" "config.properties" |
| -s, --search | one text or list of many text as input for search [REQUIRED] | -s "context" "Spring-boot" |
| -b, --searchBranches | branch(es) | -b "master" "develop" |
| -h, hostUrl | host gitlab [REQUIRED] | -h https://gitlab.com |
| -n, --projectName | project name | -n "gitlab-search" "gafawork" |
| -p, --parallel | total threads | -p 4 |
| -c, --classPlugin | plugin for execute | -c plugin.gafawork.scopre.repository.SystemOutPlugin |
| -i, --inputFile | input file filter projects | -i inputFilterFile.csv |
### **Java 21 Requirement**
### **Project Set Up**
To run Gitlab-Search, you must run it via the command line using the parameters below:
```
java -jar ./target/scopre-repository-1.0-jar-with-dependencies.jar
-d
-t glpat-x2UHy2PSS7_AGRwKqUDu
-p 4
-f pom.xml
-s jasper
-b master
-h https://gitlab.com
```
```
java -jar ./target/scopre-repository-1.0-jar-with-dependencies.jar
-d
-t glpat-x2UHy2PSS7_AGRwKqUDu
-p 4
-f ^.*.java$
-s "String" "Integer"
-b master
-h https://gitlab.com
```
```
java -jar ./target/scopre-repository-1.0-jar-with-dependencies.jar
-d
-t glpat-x2UHy2PSS7_AGRwKqUDu
-p 4
-f ^.*.java$
-s "String" "Integer"
-b master
-h https://gitlab.com
-c plugin.gafawork.scopre.repository.SystemOutPlugin
```
```
java -jar ./target/scopre-repository-1.0-jar-with-dependencies.jar
-d
-t glpat-x2UHy2PSS7_AGRwKqUDu
-p 4
-f ^.*.java$
-s "String" "Integer"
-b master
-h https://gitlab.com
-i inputfile.csv
```
**Output:**
![img.png](img.png)
**Note: **
- report-yyyy-MM-dd hh-mm-ss.csv file generated with the search result.![img_1.png](img_1.png)
- report-yyyy-MM-dd hh-mm-ss.txt file generated with the search result.
![img_2.png](img_2.png)