Skip to content

Commit

Permalink
Source GitHub: add unit tests (#31285)
Browse files Browse the repository at this point in the history
Co-authored-by: artem1205 <[email protected]>
  • Loading branch information
artem1205 and artem1205 authored Oct 11, 2023
1 parent fdf5c97 commit 370821d
Show file tree
Hide file tree
Showing 8 changed files with 493 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"query": "query {\n repository(owner: \"airbytehq\", name: \"airbyte\") {\n name\n owner {\n login\n }\n pullRequests(first: 10, orderBy: {field: UPDATED_AT, direction: ASC}) {\n nodes {\n node_id: id\n id: databaseId\n number\n updated_at: updatedAt\n changed_files: changedFiles\n deletions\n additions\n merged\n mergeable\n can_be_rebased: canBeRebased\n maintainer_can_modify: maintainerCanModify\n merge_state_status: mergeStateStatus\n comments {\n totalCount\n }\n commits {\n totalCount\n }\n review_comments: reviews(first: 100) {\n totalCount\n nodes {\n comments {\n totalCount\n }\n }\n }\n merged_by: mergedBy {\n __typename\n ... on User {\n node_id: id\n id: databaseId\n login\n avatar_url: avatarUrl\n html_url: url\n site_admin: isSiteAdmin\n }\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[
{
"author": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"total": 135,
"weeks": [
{
"w": 1367712000,
"a": 6898,
"d": 77,
"c": 10
}
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"data": {
"repository": {
"name": "integration-test",
"owner": {
"login": "airbytehq"
},
"projectsV2": {
"nodes": [
{
"closed": false,
"created_at": "2023-09-25T18:34:52Z",
"closed_at": null,
"updated_at": "2023-09-25T18:35:45Z",
"creator": {
"avatarUrl": "https://avatars.githubusercontent.com/u/92915184?u=e53c87d81ec6fb0596bc0f75e12e84e8f0df8d83&v=4",
"login": "airbyteio",
"resourcePath": "/airbyteio",
"url": "https://github.com/airbyteio"
},
"node_id": "PVT_kwDOA4_XW84AV7NS",
"id": 5747538,
"number": 58,
"public": false,
"readme": "# Title\nintegration test project",
"short_description": "integration test project description",
"template": false,
"title": "integration test project",
"url": "https://github.com/orgs/airbytehq/projects/58",
"viewerCanClose": true,
"viewerCanReopen": true,
"viewerCanUpdate": true,
"owner": {
"id": "MDEyOk9yZ2FuaXphdGlvbjU5NzU4NDI3"
}
}
],
"pageInfo": {
"hasNextPage": false,
"endCursor": "MQ"
}
}
}
}
}
Loading

0 comments on commit 370821d

Please sign in to comment.