airbyte-source-gitlab 2.1.2__tar.gz → 3.0.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/PKG-INFO +1 -1
  2. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/pyproject.toml +1 -1
  3. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/config_migrations.py +0 -2
  4. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/epic_issues.json +6 -0
  5. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/groups.json +20 -0
  6. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/issues.json +30 -0
  7. airbyte_source_gitlab-3.0.0/source_gitlab/schemas/merge_request_commits.json +85 -0
  8. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/merge_requests.json +3 -0
  9. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/pipelines_extended.json +3 -0
  10. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/projects.json +18 -0
  11. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/streams.py +3 -1
  12. airbyte_source_gitlab-2.1.2/source_gitlab/schemas/merge_request_commits.json +0 -234
  13. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/README.md +0 -0
  14. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/__init__.py +0 -0
  15. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/run.py +0 -0
  16. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/branches.json +0 -0
  17. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/commits.json +0 -0
  18. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/deployments.json +0 -0
  19. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/epics.json +0 -0
  20. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/group_issue_boards.json +0 -0
  21. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/group_labels.json +0 -0
  22. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/group_members.json +0 -0
  23. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/group_milestones.json +0 -0
  24. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/jobs.json +0 -0
  25. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/pipelines.json +0 -0
  26. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/project_labels.json +0 -0
  27. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/project_members.json +0 -0
  28. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/project_milestones.json +0 -0
  29. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/releases.json +0 -0
  30. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/tags.json +0 -0
  31. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/schemas/users.json +0 -0
  32. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/source.py +0 -0
  33. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/spec.json +0 -0
  34. {airbyte_source_gitlab-2.1.2 → airbyte_source_gitlab-3.0.0}/source_gitlab/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-source-gitlab
3
- Version: 2.1.2
3
+ Version: 3.0.0
4
4
  Summary: Source implementation for Gitlab.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -5,7 +5,7 @@ requires = [
5
5
  build-backend = "poetry.core.masonry.api"
6
6
 
7
7
  [tool.poetry]
8
- version = "2.1.2"
8
+ version = "3.0.0"
9
9
  name = "airbyte-source-gitlab"
10
10
  description = "Source implementation for Gitlab."
11
11
  authors = [
@@ -95,12 +95,10 @@ class MigrateStringToArray(ABC):
95
95
 
96
96
 
97
97
  class MigrateGroups(MigrateStringToArray):
98
-
99
98
  migrate_from_key: str = "groups"
100
99
  migrate_to_key: str = "groups_list"
101
100
 
102
101
 
103
102
  class MigrateProjects(MigrateStringToArray):
104
-
105
103
  migrate_from_key: str = "projects"
106
104
  migrate_to_key: str = "projects_list"
@@ -216,6 +216,12 @@
216
216
  },
217
217
  "group_id": {
218
218
  "type": ["null", "integer"]
219
+ },
220
+ "human_readable_end_date": {
221
+ "type": ["null", "string"]
222
+ },
223
+ "human_readable_timestamp": {
224
+ "type": ["null", "string"]
219
225
  }
220
226
  }
221
227
  },
@@ -38,6 +38,17 @@
38
38
  }
39
39
  }
40
40
  }
41
+ },
42
+ "allowed_to_push": {
43
+ "type": ["null", "array"],
44
+ "items": {
45
+ "type": ["null", "object"],
46
+ "properties": {
47
+ "access_level": {
48
+ "type": ["null", "integer"]
49
+ }
50
+ }
51
+ }
41
52
  }
42
53
  }
43
54
  },
@@ -74,6 +85,9 @@
74
85
  "subgroup_creation_level": {
75
86
  "type": ["null", "string"]
76
87
  },
88
+ "enabled_git_access_protocol": {
89
+ "type": ["null", "string"]
90
+ },
77
91
  "emails_disabled": {
78
92
  "type": ["null", "boolean"]
79
93
  },
@@ -153,6 +167,12 @@
153
167
  },
154
168
  "service_access_tokens_expiration_enforced": {
155
169
  "type": ["null", "boolean"]
170
+ },
171
+ "lock_math_rendering_limits_enabled": {
172
+ "type": ["null", "boolean"]
173
+ },
174
+ "math_rendering_limits_enabled": {
175
+ "type": ["null", "boolean"]
156
176
  }
157
177
  }
158
178
  }
@@ -118,6 +118,9 @@
118
118
  },
119
119
  "id": {
120
120
  "type": ["null", "integer"]
121
+ },
122
+ "locked": {
123
+ "type": ["null", "boolean"]
121
124
  }
122
125
  }
123
126
  },
@@ -141,6 +144,12 @@
141
144
  },
142
145
  "username": {
143
146
  "type": ["null", "string"]
147
+ },
148
+ "id": {
149
+ "type": ["null", "integer"]
150
+ },
151
+ "locked": {
152
+ "type": ["null", "boolean"]
144
153
  }
145
154
  }
146
155
  },
@@ -164,6 +173,18 @@
164
173
  },
165
174
  "username": {
166
175
  "type": ["null", "string"]
176
+ },
177
+ "human_readable_end_date": {
178
+ "type": ["null", "string"]
179
+ },
180
+ "human_readable_timestamp": {
181
+ "type": ["null", "string"]
182
+ },
183
+ "id": {
184
+ "type": ["null", "integer"]
185
+ },
186
+ "locked": {
187
+ "type": ["null", "boolean"]
167
188
  }
168
189
  }
169
190
  },
@@ -251,6 +272,15 @@
251
272
  },
252
273
  "group_id": {
253
274
  "type": ["null", "integer"]
275
+ },
276
+ "locked": {
277
+ "type": ["null", "boolean"]
278
+ },
279
+ "human_readable_end_date": {
280
+ "type": ["null", "string"]
281
+ },
282
+ "human_readable_timestamp": {
283
+ "type": ["null", "string"]
254
284
  }
255
285
  }
256
286
  },
@@ -0,0 +1,85 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "project_id": {
6
+ "type": ["null", "integer"]
7
+ },
8
+ "id": {
9
+ "type": ["null", "string"]
10
+ },
11
+ "short_id": {
12
+ "type": ["null", "string"]
13
+ },
14
+ "created_at": {
15
+ "type": ["null", "string"],
16
+ "format": "date-time"
17
+ },
18
+ "parent_ids": {
19
+ "type": ["null", "array"],
20
+ "items": {
21
+ "type": ["null", "string"]
22
+ }
23
+ },
24
+ "title": {
25
+ "type": ["null", "string"]
26
+ },
27
+ "message": {
28
+ "type": ["null", "string"]
29
+ },
30
+ "author_name": {
31
+ "type": ["null", "string"]
32
+ },
33
+ "author_email": {
34
+ "type": ["null", "string"]
35
+ },
36
+ "authored_date": {
37
+ "type": ["null", "string"],
38
+ "format": "date-time"
39
+ },
40
+ "extended_trailers": {
41
+ "type": ["null", "object"],
42
+ "properties": {
43
+ "Cc": {
44
+ "type": ["null", "array"],
45
+ "items": {
46
+ "type": ["null", "string"]
47
+ }
48
+ }
49
+ }
50
+ },
51
+ "committer_name": {
52
+ "type": ["null", "string"]
53
+ },
54
+ "committer_email": {
55
+ "type": ["null", "string"]
56
+ },
57
+ "committed_date": {
58
+ "type": ["null", "string"],
59
+ "format": "date-time"
60
+ },
61
+ "trailers": {
62
+ "type": ["null", "object"]
63
+ },
64
+ "web_url": {
65
+ "type": ["null", "string"]
66
+ },
67
+ "stats": {
68
+ "type": ["null", "object"],
69
+ "properties": {
70
+ "additions": {
71
+ "type": ["null", "integer"]
72
+ },
73
+ "deletions": {
74
+ "type": ["null", "integer"]
75
+ },
76
+ "total": {
77
+ "type": ["null", "integer"]
78
+ }
79
+ }
80
+ },
81
+ "merge_request_iid": {
82
+ "type": ["null", "integer"]
83
+ }
84
+ }
85
+ }
@@ -194,6 +194,9 @@
194
194
  },
195
195
  "web_url": {
196
196
  "type": ["null", "string"]
197
+ },
198
+ "locked": {
199
+ "type": ["null", "boolean"]
197
200
  }
198
201
  }
199
202
  }
@@ -63,6 +63,9 @@
63
63
  },
64
64
  "web_url": {
65
65
  "type": ["null", "string"]
66
+ },
67
+ "locked": {
68
+ "type": ["null", "boolean"]
66
69
  }
67
70
  }
68
71
  },
@@ -123,6 +123,9 @@
123
123
  },
124
124
  "members": {
125
125
  "type": ["null", "string"]
126
+ },
127
+ "cluster_agents": {
128
+ "type": ["null", "string"]
126
129
  }
127
130
  }
128
131
  },
@@ -329,6 +332,15 @@
329
332
  },
330
333
  "packages_size": {
331
334
  "type": ["null", "integer"]
335
+ },
336
+ "container_registry_size": {
337
+ "type": ["null", "integer"]
338
+ },
339
+ "pipeline_artifacts_size": {
340
+ "type": ["null", "integer"]
341
+ },
342
+ "uploads_size": {
343
+ "type": ["null", "integer"]
332
344
  }
333
345
  }
334
346
  },
@@ -492,6 +504,12 @@
492
504
  },
493
505
  "ci_restrict_pipeline_cancellation_role": {
494
506
  "type": ["null", "string"]
507
+ },
508
+ "repository_object_format": {
509
+ "type": ["null", "string"]
510
+ },
511
+ "warn_about_potentially_unwanted_characters": {
512
+ "type": ["null", "boolean"]
495
513
  }
496
514
  }
497
515
  }
@@ -339,8 +339,10 @@ class MergeRequests(IncrementalGitlabChildStream):
339
339
 
340
340
 
341
341
  class MergeRequestCommits(GitlabChildStream):
342
+ """Docs: https://docs.gitlab.com/ee/api/merge_requests.html#get-single-merge-request-commits"""
343
+
342
344
  path_list = ["project_id", "iid"]
343
- path_template = "projects/{project_id}/merge_requests/{iid}"
345
+ path_template = "projects/{project_id}/merge_requests/{iid}/commits"
344
346
 
345
347
  def transform(self, record, stream_slice: Mapping[str, Any] = None, **kwargs):
346
348
  super().transform(record, stream_slice, **kwargs)
@@ -1,234 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "id": {
6
- "type": ["null", "integer"]
7
- },
8
- "iid": {
9
- "type": ["null", "integer"]
10
- },
11
- "project_id": {
12
- "type": ["null", "integer"]
13
- },
14
- "title": {
15
- "type": ["null", "string"]
16
- },
17
- "description": {
18
- "type": ["null", "string"]
19
- },
20
- "state": {
21
- "type": ["null", "string"]
22
- },
23
- "created_at": {
24
- "type": ["null", "string"],
25
- "format": "date-time"
26
- },
27
- "updated_at": {
28
- "type": ["null", "string"],
29
- "format": "date-time"
30
- },
31
- "merged_by": {
32
- "type": ["null", "object"]
33
- },
34
- "merged_at": {
35
- "type": ["null", "string"],
36
- "format": "date-time"
37
- },
38
- "prepared_at": {
39
- "type": ["null", "string"],
40
- "format": "date-time"
41
- },
42
- "closed_by": {
43
- "type": ["null", "object"]
44
- },
45
- "closed_at": {
46
- "type": ["null", "string"],
47
- "format": "date-time"
48
- },
49
- "target_branch": {
50
- "type": ["null", "string"]
51
- },
52
- "source_branch": {
53
- "type": ["null", "string"]
54
- },
55
- "user_notes_count": {
56
- "type": ["null", "integer"]
57
- },
58
- "upvotes": {
59
- "type": ["null", "integer"]
60
- },
61
- "downvotes": {
62
- "type": ["null", "integer"]
63
- },
64
- "author": {
65
- "type": ["null", "object"]
66
- },
67
- "assignees": {
68
- "type": ["null", "array"],
69
- "items": {
70
- "type": "object"
71
- }
72
- },
73
- "assignee": {
74
- "type": ["null", "object"]
75
- },
76
- "reviewers": {
77
- "type": ["null", "array"],
78
- "items": {
79
- "type": "object"
80
- }
81
- },
82
- "source_project_id": {
83
- "type": ["null", "integer"]
84
- },
85
- "target_project_id": {
86
- "type": ["null", "integer"]
87
- },
88
- "labels": {
89
- "type": ["null", "array"],
90
- "items": {
91
- "type": "string"
92
- }
93
- },
94
- "work_in_progress": {
95
- "type": ["null", "boolean"]
96
- },
97
- "milestone": {
98
- "type": ["null", "object"]
99
- },
100
- "merge_when_pipeline_succeeds": {
101
- "type": ["null", "boolean"]
102
- },
103
- "merge_status": {
104
- "type": ["null", "string"]
105
- },
106
- "sha": {
107
- "type": ["null", "string"]
108
- },
109
- "merge_commit_sha": {
110
- "type": ["null", "string"]
111
- },
112
- "squash_commit_sha": {
113
- "type": ["null", "string"]
114
- },
115
- "discussion_locked": {
116
- "type": ["null", "boolean"]
117
- },
118
- "should_remove_source_branch": {
119
- "type": ["null", "boolean"]
120
- },
121
- "force_remove_source_branch": {
122
- "type": ["null", "boolean"]
123
- },
124
- "reference": {
125
- "type": ["null", "string"]
126
- },
127
- "references": {
128
- "type": ["null", "object"]
129
- },
130
- "web_url": {
131
- "type": ["null", "string"]
132
- },
133
- "time_stats": {
134
- "type": ["null", "object"]
135
- },
136
- "squash": {
137
- "type": ["null", "boolean"]
138
- },
139
- "task_completion_status": {
140
- "type": ["null", "object"]
141
- },
142
- "has_conflicts": {
143
- "type": ["null", "boolean"]
144
- },
145
- "blocking_discussions_resolved": {
146
- "type": ["null", "boolean"]
147
- },
148
- "approvals_before_merge": {
149
- "type": ["null", "boolean", "string", "object"]
150
- },
151
- "subscribed": {
152
- "type": ["null", "boolean"]
153
- },
154
- "changes_count": {
155
- "type": ["null", "integer", "string"]
156
- },
157
- "latest_build_started_at": {
158
- "type": ["null", "string"],
159
- "format": "date-time"
160
- },
161
- "latest_build_finished_at": {
162
- "type": ["null", "string"],
163
- "format": "date-time"
164
- },
165
- "first_deployed_to_production_at": {
166
- "type": ["null", "string"],
167
- "format": "date-time"
168
- },
169
- "pipeline": {
170
- "type": ["null", "object"]
171
- },
172
- "head_pipeline": {
173
- "type": ["null", "object", "string", "boolean", "integer"]
174
- },
175
- "diff_refs": {
176
- "type": ["null", "object"],
177
- "properties": {
178
- "base_sha": {
179
- "type": ["null", "string"]
180
- },
181
- "head_sha": {
182
- "type": ["null", "string"]
183
- },
184
- "start_sha": {
185
- "type": ["null", "string"]
186
- }
187
- }
188
- },
189
- "merge_error": {
190
- "type": ["null", "boolean", "string"]
191
- },
192
- "first_contribution": {
193
- "type": ["null", "boolean"]
194
- },
195
- "user": {
196
- "type": ["null", "object"]
197
- },
198
- "merge_request_iid": {
199
- "type": ["null", "integer"]
200
- },
201
- "draft": {
202
- "type": ["null", "boolean"]
203
- },
204
- "detailed_merge_status": {
205
- "type": ["null", "string"]
206
- },
207
- "squash_on_merge": {
208
- "type": ["null", "boolean"]
209
- },
210
- "merge_user": {
211
- "type": ["null", "object"],
212
- "properties": {
213
- "id": {
214
- "type": ["null", "integer"]
215
- },
216
- "name": {
217
- "type": ["null", "string"]
218
- },
219
- "username": {
220
- "type": ["null", "string"]
221
- },
222
- "state": {
223
- "type": ["null", "string"]
224
- },
225
- "avatar_url": {
226
- "type": ["null", "string"]
227
- },
228
- "web_url": {
229
- "type": ["null", "string"]
230
- }
231
- }
232
- }
233
- }
234
- }