1
1
# gitlab-to-sqlite
2
2
3
+ [ ![ PyPI] ( https://img.shields.io/pypi/v/gitlab-to-sqlite.svg )] ( https://pypi.org/project/gitlab-to-sqlite/ )
3
4
[ ![ License] ( https://img.shields.io/badge/license-Apache%202.0-blue.svg )] ( https://github.com/squiddy/gitlab-to-sqlite/blob/main/LICENSE )
4
5
5
6
Save data from GitLab to a SQLite database.
@@ -13,7 +14,11 @@ https://github.com/dogsheep/github-to-sqlite/.
13
14
- [ Authentication] ( #authentication )
14
15
- [ Using custom gitlab instance] ( #using-custom-gitlab-instance )
15
16
- [ Fetching projects] ( #fetching-projects )
17
+ - [ Fetching merge requests] ( #fetching-merge-requests )
16
18
- [ Fetching pipelines] ( #fetching-pipelines )
19
+ - [ Fetching environments] ( #fetching-environments )
20
+ - [ Fetching deployments] ( #fetching-deployments )
21
+ - [ Fetching commits] ( #fetching-commits )
17
22
18
23
## How to install
19
24
@@ -47,6 +52,15 @@ The `projects` command retrieves a single project.
47
52
48
53
$ gitlab-to-sqlite projects gitlab.db group/project-name
49
54
55
+ ## Fetching merge requests
56
+
57
+ The ` merge-requests ` command retrieves updated or created merge requests.
58
+
59
+ $ gitlab-to-sqlite merge-requests gitlab.db group/project-name
60
+
61
+ This command can be run regularly. Based on the most recent created or updated
62
+ merge request it only fetches changes that happened afterwards.
63
+
50
64
## Fetching pipelines
51
65
52
66
The ` pipelines ` command retrieves updated or created pipelines with their
@@ -55,4 +69,26 @@ corresponding jobs.
55
69
$ gitlab-to-sqlite pipelines gitlab.db group/project-name
56
70
57
71
This command can be run regularly. Based on the most recent created or updated
58
- pipeline it only fetches changes that happened afterwards.
72
+ pipeline it only fetches changes that happened afterwards.
73
+
74
+ ## Fetching environments
75
+
76
+ The ` environments ` command retrieves all environments of a single project.
77
+
78
+ $ gitlab-to-sqlite projects gitlab.db group/project-name
79
+
80
+ ## Fetching deployments
81
+
82
+ The ` deployments ` command retrieves all deployments of a specific environment in
83
+ a single project.
84
+
85
+ $ gitlab-to-sqlite deployments gitlab.db group/project-name environment-name
86
+
87
+ This command can be run regularly. Based on the most recent created or updated
88
+ deployment it only fetches changes that happened afterwards.
89
+
90
+ ## Fetching commits
91
+
92
+ The ` commits ` command retrieves all commits of a single project.
93
+
94
+ $ gitlab-to-sqlite commits gitlab.db group/project-name
0 commit comments