Skip to content

Commit b05c490

Browse files
✨ Source GitHub: updating branches schema and unpin on cloud (#35271)
Co-authored-by: maxi297 <[email protected]> Co-authored-by: Maxime Carbonneau-Leclerc <[email protected]>
1 parent 06ab099 commit b05c490

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

airbyte-integrations/connectors/source-github/integration_tests/expected_records.jsonl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{"stream":"assignees","data":{"login":"AirbyteEricksson","id":101604444,"node_id":"U_kgDOBg5cXA","avatar_url":"https://avatars.githubusercontent.com/u/101604444?v=4","gravatar_id":"","url":"https://api.github.com/users/AirbyteEricksson","html_url":"https://github.com/AirbyteEricksson","followers_url":"https://api.github.com/users/AirbyteEricksson/followers","following_url":"https://api.github.com/users/AirbyteEricksson/following{/other_user}","gists_url":"https://api.github.com/users/AirbyteEricksson/gists{/gist_id}","starred_url":"https://api.github.com/users/AirbyteEricksson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirbyteEricksson/subscriptions","organizations_url":"https://api.github.com/users/AirbyteEricksson/orgs","repos_url":"https://api.github.com/users/AirbyteEricksson/repos","events_url":"https://api.github.com/users/AirbyteEricksson/events{/privacy}","received_events_url":"https://api.github.com/users/AirbyteEricksson/received_events","type":"User","site_admin":false,"repository":"airbytehq/integration-test"},"emitted_at":1677668743181}
2-
{"stream":"branches","data":{"name":"feature/branch_0","commit":{"sha":"cbbeaf3ef6eb7217052eae2fe665f655e3813973","url":"https://api.github.com/repos/airbytehq/integration-test/commits/cbbeaf3ef6eb7217052eae2fe665f655e3813973"},"protected":false,"repository":"airbytehq/integration-test"},"emitted_at":1677668743768}
3-
{"stream":"collaborators","data":{"login": "octavia-approvington", "id": 117117241, "node_id": "U_kgDOBvsROQ", "avatar_url": "https://avatars.githubusercontent.com/u/117117241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/octavia-approvington", "html_url": "https://github.com/octavia-approvington", "followers_url": "https://api.github.com/users/octavia-approvington/followers", "following_url": "https://api.github.com/users/octavia-approvington/following{/other_user}", "gists_url": "https://api.github.com/users/octavia-approvington/gists{/gist_id}", "starred_url": "https://api.github.com/users/octavia-approvington/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/octavia-approvington/subscriptions", "organizations_url": "https://api.github.com/users/octavia-approvington/orgs", "repos_url": "https://api.github.com/users/octavia-approvington/repos", "events_url": "https://api.github.com/users/octavia-approvington/events{/privacy}", "received_events_url": "https://api.github.com/users/octavia-approvington/received_events", "type": "User", "site_admin": false, "permissions": {"admin": false, "maintain": false, "push": true, "triage": true, "pull": true}, "role_name": "write", "repository": "airbytehq/integration-test"},"emitted_at":1677668744171}
2+
{"stream":"branches", "data": {"name": "feature/branch_0", "commit": {"sha": "cbbeaf3ef6eb7217052eae2fe665f655e3813973", "url": "https://api.github.com/repos/airbytehq/integration-test/commits/cbbeaf3ef6eb7217052eae2fe665f655e3813973"}, "protected": false, "protection": {"enabled": false, "required_status_checks": {"enforcement_level": "off", "contexts": [], "checks": []}}, "protection_url": "https://api.github.com/repos/airbytehq/integration-test/branches/feature/branch_0/protection", "repository": "airbytehq/integration-test"}, "emitted_at": 1707933365457}
3+
{"stream":"collaborators","data":{"login": "octavia-approvington", "id": 117117241, "node_id": "U_kgDOBvsROQ", "avatar_url": "https://avatars.githubusercontent.com/u/117117241?v=4", "gravatar_id": "", "url": "https://api.github.com/users/octavia-approvington", "html_url": "https://github.com/octavia-approvington", "followers_url": "https://api.github.com/users/octavia-approvington/followers", "following_url": "https://api.github.com/users/octavia-approvington/following{/other_user}", "gists_url": "https://api.github.com/users/octavia-approvington/gists{/gist_id}", "starred_url": "https://api.github.com/users/octavia-approvington/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/octavia-approvington/subscriptions", "organizations_url": "https://api.github.com/users/octavia-approvington/orgs", "repos_url": "https://api.github.com/users/octavia-approvington/repos", "events_url": "https://api.github.com/users/octavia-approvington/events{/privacy}", "received_events_url": "https://api.github.com/users/octavia-approvington/received_events", "type": "User", "site_admin": false, "permissions": {"admin": true, "maintain": true, "push": true, "triage": true, "pull": true}, "role_name": "admin", "repository": "airbytehq/integration-test"},"emitted_at":1677668744171}
44
{"stream":"comments","data":{"url":"https://api.github.com/repos/airbytehq/integration-test/issues/comments/907296167","html_url":"https://github.com/airbytehq/integration-test/issues/6#issuecomment-907296167","issue_url":"https://api.github.com/repos/airbytehq/integration-test/issues/6","id":907296167,"node_id":"IC_kwDOF9hP9c42FD2n","user":{"login":"gaart","id":743901,"node_id":"MDQ6VXNlcjc0MzkwMQ==","avatar_url":"https://avatars.githubusercontent.com/u/743901?v=4","gravatar_id":"","url":"https://api.github.com/users/gaart","html_url":"https://github.com/gaart","followers_url":"https://api.github.com/users/gaart/followers","following_url":"https://api.github.com/users/gaart/following{/other_user}","gists_url":"https://api.github.com/users/gaart/gists{/gist_id}","starred_url":"https://api.github.com/users/gaart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaart/subscriptions","organizations_url":"https://api.github.com/users/gaart/orgs","repos_url":"https://api.github.com/users/gaart/repos","events_url":"https://api.github.com/users/gaart/events{/privacy}","received_events_url":"https://api.github.com/users/gaart/received_events","type":"User","site_admin":false},"created_at":"2021-08-27T15:43:59Z","updated_at":"2021-08-27T15:43:59Z","author_association":"CONTRIBUTOR","body":"comment for issues https://api.github.com/repos/airbytehq/integration-test/issues/6/comments","reactions":{"url":"https://api.github.com/repos/airbytehq/integration-test/issues/comments/907296167/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"performed_via_github_app":null,"repository":"airbytehq/integration-test"},"emitted_at":1677668744803}
55
{"stream":"commit_comment_reactions","data":{"id":154935429,"node_id":"REA_lADOF9hP9c4DT3SJzgk8IIU","user":{"login":"grubberr","id":195743,"node_id":"MDQ6VXNlcjE5NTc0Mw==","avatar_url":"https://avatars.githubusercontent.com/u/195743?v=4","gravatar_id":"","url":"https://api.github.com/users/grubberr","html_url":"https://github.com/grubberr","followers_url":"https://api.github.com/users/grubberr/followers","following_url":"https://api.github.com/users/grubberr/following{/other_user}","gists_url":"https://api.github.com/users/grubberr/gists{/gist_id}","starred_url":"https://api.github.com/users/grubberr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grubberr/subscriptions","organizations_url":"https://api.github.com/users/grubberr/orgs","repos_url":"https://api.github.com/users/grubberr/repos","events_url":"https://api.github.com/users/grubberr/events{/privacy}","received_events_url":"https://api.github.com/users/grubberr/received_events","type":"User","site_admin":false},"content":"laugh","created_at":"2022-03-20T11:29:29Z","repository":"airbytehq/integration-test","comment_id":55538825},"emitted_at":1677668746490}
66
{"stream":"commit_comments","data":{"url":"https://api.github.com/repos/airbytehq/integration-test/comments/55538825","html_url":"https://github.com/airbytehq/integration-test/commit/cbbeaf3ef6eb7217052eae2fe665f655e3813973#commitcomment-55538825","id":55538825,"node_id":"MDEzOkNvbW1pdENvbW1lbnQ1NTUzODgyNQ==","user":{"login":"gaart","id":743901,"node_id":"MDQ6VXNlcjc0MzkwMQ==","avatar_url":"https://avatars.githubusercontent.com/u/743901?v=4","gravatar_id":"","url":"https://api.github.com/users/gaart","html_url":"https://github.com/gaart","followers_url":"https://api.github.com/users/gaart/followers","following_url":"https://api.github.com/users/gaart/following{/other_user}","gists_url":"https://api.github.com/users/gaart/gists{/gist_id}","starred_url":"https://api.github.com/users/gaart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaart/subscriptions","organizations_url":"https://api.github.com/users/gaart/orgs","repos_url":"https://api.github.com/users/gaart/repos","events_url":"https://api.github.com/users/gaart/events{/privacy}","received_events_url":"https://api.github.com/users/gaart/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"cbbeaf3ef6eb7217052eae2fe665f655e3813973","created_at":"2021-08-27T15:43:32Z","updated_at":"2021-08-27T15:43:32Z","author_association":"CONTRIBUTOR","body":"comment for cbbeaf3ef6eb7217052eae2fe665f655e3813973 branch","reactions":{"url":"https://api.github.com/repos/airbytehq/integration-test/comments/55538825/reactions","total_count":2,"+1":0,"-1":0,"laugh":1,"hooray":0,"confused":0,"heart":1,"rocket":0,"eyes":0},"repository":"airbytehq/integration-test"},"emitted_at":1677668747441}

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

Lines changed: 1 addition & 1 deletion
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.6.2
13+
dockerImageTag: 1.6.3
1414
dockerRepository: airbyte/source-github
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/github
1616
githubIssueLabel: source-github

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"protection": {
2626
"type": ["null", "object"],
2727
"properties": {
28+
"enabled": {
29+
"type": ["null", "boolean"]
30+
},
2831
"required_status_checks": {
2932
"type": ["null", "object"],
3033
"properties": {
@@ -36,6 +39,20 @@
3639
"items": {
3740
"type": ["null", "string"]
3841
}
42+
},
43+
"checks": {
44+
"type": ["null", "array"],
45+
"items": {
46+
"type": "object",
47+
"properties": {
48+
"context": {
49+
"type": ["null", "string"]
50+
},
51+
"app_id": {
52+
"type": ["null", "integer"]
53+
}
54+
}
55+
}
3956
}
4057
}
4158
}

docs/integrations/sources/github.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ Your token should have at least the `repo` scope. Depending on which streams you
207207

208208
| Version | Date | Pull Request | Subject |
209209
|:--------|:-----------|:------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
210+
| 1.6.3 | 2024-02-15 | [35271](https://github.com/airbytehq/airbyte/pull/35271) | Update branches schema |
210211
| 1.6.2 | 2024-02-12 | [34933](https://github.com/airbytehq/airbyte/pull/34933) | Update Airbyte CDK for integration tests |
211212
| 1.6.1 | 2024-02-09 | [35087](https://github.com/airbytehq/airbyte/pull/35087) | Manage dependencies with Poetry. |
212213
| 1.6.0 | 2024-02-02 | [34700](https://github.com/airbytehq/airbyte/pull/34700) | Continue Sync on Stream failure |

0 commit comments

Comments
 (0)