Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Scopre Repository for Gitlab
Java Library for search in the GitLab repository

Java 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)