Skip to content

Commit b581877

Browse files
bleonardlazebnyi
andauthored
source-github: ensure inline schemas, updated cdk, poetry (where possible) (#36636)
Co-authored-by: Serhii Lazebnyi <[email protected]>
1 parent 59adbe8 commit b581877

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1298
-94
lines changed

airbyte-integrations/connectors/source-github/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: ef69ef6e-aa7f-4af1-a01d-ef775033524e
13-
dockerImageTag: 1.7.1
13+
dockerImageTag: 1.7.2
1414
dockerRepository: airbyte/source-github
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/github
1616
githubIssueLabel: source-github

airbyte-integrations/connectors/source-github/poetry.lock

+18-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

airbyte-integrations/connectors/source-github/pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "1.7.1"
6+
version = "1.7.2"
77
name = "source-github"
88
description = "Source implementation for GitHub."
99
authors = [ "Airbyte <[email protected]>",]
@@ -17,7 +17,7 @@ include = "source_github"
1717

1818
[tool.poetry.dependencies]
1919
python = "^3.9,<3.12"
20-
airbyte-cdk = "^0"
20+
airbyte-cdk = "0.80.0"
2121
sgqlc = "==16.3"
2222

2323
[tool.poetry.scripts]

airbyte-integrations/connectors/source-github/source_github/schemas/assignees.json

+19
Original file line numberDiff line numberDiff line change
@@ -3,60 +3,79 @@
33
"type": "object",
44
"properties": {
55
"repository": {
6+
"description": "Repository where the assignee is assigned",
67
"type": "string"
78
},
89
"login": {
10+
"description": "Username of the assignee",
911
"type": ["null", "string"]
1012
},
1113
"id": {
14+
"description": "Unique identifier of the assignee",
1215
"type": ["null", "integer"]
1316
},
1417
"node_id": {
18+
"description": "Node ID of the assignee",
1519
"type": ["null", "string"]
1620
},
1721
"avatar_url": {
22+
"description": "URL of the assignee's avatar image",
1823
"type": ["null", "string"]
1924
},
2025
"gravatar_id": {
26+
"description": "Gravatar ID of the assignee",
2127
"type": ["null", "string"]
2228
},
2329
"url": {
30+
"description": "URL of the assignee's account",
2431
"type": ["null", "string"]
2532
},
2633
"html_url": {
34+
"description": "URL of the assignee's GitHub profile",
2735
"type": ["null", "string"]
2836
},
2937
"followers_url": {
38+
"description": "URL of the assignee's followers",
3039
"type": ["null", "string"]
3140
},
3241
"following_url": {
42+
"description": "URL of the assignee's following",
3343
"type": ["null", "string"]
3444
},
3545
"gists_url": {
46+
"description": "URL of the assignee's gists",
3647
"type": ["null", "string"]
3748
},
3849
"starred_url": {
50+
"description": "URL of the assignee's starred items",
3951
"type": ["null", "string"]
4052
},
4153
"subscriptions_url": {
54+
"description": "URL of the assignee's subscriptions",
4255
"type": ["null", "string"]
4356
},
4457
"organizations_url": {
58+
"description": "URL of the assignee's organizations",
4559
"type": ["null", "string"]
4660
},
4761
"repos_url": {
62+
"description": "URL of the assignee's repositories",
4863
"type": ["null", "string"]
4964
},
5065
"events_url": {
66+
"description": "URL of the assignee's events",
5167
"type": ["null", "string"]
5268
},
5369
"received_events_url": {
70+
"description": "URL of the assignee's received events",
5471
"type": ["null", "string"]
5572
},
5673
"type": {
74+
"description": "Type of the assignee's account",
5775
"type": ["null", "string"]
5876
},
5977
"site_admin": {
78+
"description": "Boolean indicating if the assignee is a site administrator",
6079
"type": ["null", "boolean"]
6180
}
6281
}

airbyte-integrations/connectors/source-github/source_github/schemas/branches.json

+17
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,68 @@
33
"type": "object",
44
"properties": {
55
"repository": {
6+
"description": "Details about the repository associated with the branch.",
67
"type": "string"
78
},
89
"name": {
10+
"description": "The name of the branch.",
911
"type": ["null", "string"]
1012
},
1113
"commit": {
14+
"description": "Details about the commit associated with the branch.",
1215
"type": ["null", "object"],
1316
"properties": {
1417
"sha": {
18+
"description": "The unique identifier of the commit.",
1519
"type": ["null", "string"]
1620
},
1721
"url": {
22+
"description": "The URL to view details of the commit.",
1823
"type": ["null", "string"]
1924
}
2025
}
2126
},
2227
"protected": {
28+
"description": "Indicates if the branch is protected.",
2329
"type": ["null", "boolean"]
2430
},
2531
"protection": {
32+
"description": "Details about the protection settings of the branch.",
2633
"type": ["null", "object"],
2734
"properties": {
2835
"enabled": {
36+
"description": "Indicates if protection is enabled for the branch.",
2937
"type": ["null", "boolean"]
3038
},
3139
"required_status_checks": {
40+
"description": "Settings for required status checks on the branch.",
3241
"type": ["null", "object"],
3342
"properties": {
3443
"enforcement_level": {
44+
"description": "Level of enforcement for required status checks.",
3545
"type": ["null", "string"]
3646
},
3747
"contexts": {
48+
"description": "List of contexts required for status checks to pass.",
3849
"type": ["null", "array"],
3950
"items": {
51+
"description": "Name of a context.",
4052
"type": ["null", "string"]
4153
}
4254
},
4355
"checks": {
56+
"description": "List of status checks that are required.",
4457
"type": ["null", "array"],
4558
"items": {
59+
"description": "Details about a specific status check.",
4660
"type": "object",
4761
"properties": {
4862
"context": {
63+
"description": "Context information of the status check.",
4964
"type": ["null", "string"]
5065
},
5166
"app_id": {
67+
"description": "ID of the application associated with the status check.",
5268
"type": ["null", "integer"]
5369
}
5470
}
@@ -59,6 +75,7 @@
5975
}
6076
},
6177
"protection_url": {
78+
"description": "URL to manage protection settings for the branch.",
6279
"type": ["null", "string"]
6380
}
6481
}

airbyte-integrations/connectors/source-github/source_github/schemas/collaborators.json

+26
Original file line numberDiff line numberDiff line change
@@ -3,81 +3,107 @@
33
"type": "object",
44
"properties": {
55
"repository": {
6+
"description": "Repository information related to the collaborator",
67
"type": "string"
78
},
89
"login": {
10+
"description": "Username of the collaborator",
911
"type": ["null", "string"]
1012
},
1113
"id": {
14+
"description": "Unique identifier of the collaborator",
1215
"type": ["null", "integer"]
1316
},
1417
"node_id": {
18+
"description": "Node ID of the collaborator",
1519
"type": ["null", "string"]
1620
},
1721
"avatar_url": {
22+
"description": "URL of the collaborator's avatar image",
1823
"type": ["null", "string"]
1924
},
2025
"gravatar_id": {
26+
"description": "Gravatar ID of the collaborator",
2127
"type": ["null", "string"]
2228
},
2329
"url": {
30+
"description": "URL of the collaborator's GitHub API endpoint",
2431
"type": ["null", "string"]
2532
},
2633
"html_url": {
34+
"description": "HTML URL of the collaborator's profile",
2735
"type": ["null", "string"]
2836
},
2937
"followers_url": {
38+
"description": "URL of the followers of the collaborator",
3039
"type": ["null", "string"]
3140
},
3241
"following_url": {
42+
"description": "URL of the users followed by the collaborator",
3343
"type": ["null", "string"]
3444
},
3545
"gists_url": {
46+
"description": "URL of gists created by the collaborator",
3647
"type": ["null", "string"]
3748
},
3849
"starred_url": {
50+
"description": "URL of the repositories starred by the collaborator",
3951
"type": ["null", "string"]
4052
},
4153
"subscriptions_url": {
54+
"description": "URL of the repositories subscribed to by the collaborator",
4255
"type": ["null", "string"]
4356
},
4457
"organizations_url": {
58+
"description": "URL of organizations the collaborator is associated with",
4559
"type": ["null", "string"]
4660
},
4761
"repos_url": {
62+
"description": "URL of the repositories of the collaborator",
4863
"type": ["null", "string"]
4964
},
5065
"events_url": {
66+
"description": "URL of the events related to the collaborator",
5167
"type": ["null", "string"]
5268
},
5369
"received_events_url": {
70+
"description": "URL of events received by the collaborator",
5471
"type": ["null", "string"]
5572
},
5673
"type": {
74+
"description": "Type of the collaborator (e.g., User)",
5775
"type": ["null", "string"]
5876
},
5977
"site_admin": {
78+
"description": "Indicates if the collaborator is a site administrator",
6079
"type": ["null", "boolean"]
6180
},
6281
"role_name": {
82+
"description": "Name of the collaborator's role",
6383
"type": ["null", "string"]
6484
},
6585
"permissions": {
86+
"description": "The permissions assigned to the collaborators",
6687
"type": ["null", "object"],
6788
"properties": {
6889
"admin": {
90+
"description": "Indicates if the collaborator has admin access",
6991
"type": ["null", "boolean"]
7092
},
7193
"maintain": {
94+
"description": "Indicates if the collaborator has maintain access",
7295
"type": ["null", "boolean"]
7396
},
7497
"push": {
98+
"description": "Indicates if the collaborator has push access",
7599
"type": ["null", "boolean"]
76100
},
77101
"pull": {
102+
"description": "Indicates if the collaborator has pull access",
78103
"type": ["null", "boolean"]
79104
},
80105
"triage": {
106+
"description": "Indicates if the collaborator has triage access",
81107
"type": ["null", "boolean"]
82108
}
83109
}

0 commit comments

Comments
 (0)