Skip to content

Commit a217b53

Browse files
authored
Add some more mock scenarios (#1667)
1 parent 4826a7e commit a217b53

File tree

74 files changed

+83526
-0
lines changed

Some content is hidden

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

74 files changed

+83526
-0
lines changed
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
{
2+
"request": {
3+
"kind": "getRepo"
4+
},
5+
"response": {
6+
"status": 200,
7+
"body": {
8+
"id": 557804416,
9+
"node_id": "R_kgDOIT9rgA",
10+
"name": "mrva-demo-controller-repo",
11+
"full_name": "github/mrva-demo-controller-repo",
12+
"private": true,
13+
"owner": {
14+
"login": "github",
15+
"id": 9919,
16+
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
17+
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
18+
"gravatar_id": "",
19+
"url": "https://api.github.com/users/github",
20+
"html_url": "https://github.com/github",
21+
"followers_url": "https://api.github.com/users/github/followers",
22+
"following_url": "https://api.github.com/users/github/following{/other_user}",
23+
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
24+
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
25+
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
26+
"organizations_url": "https://api.github.com/users/github/orgs",
27+
"repos_url": "https://api.github.com/users/github/repos",
28+
"events_url": "https://api.github.com/users/github/events{/privacy}",
29+
"received_events_url": "https://api.github.com/users/github/received_events",
30+
"type": "Organization",
31+
"site_admin": false
32+
},
33+
"html_url": "https://github.com/github/mrva-demo-controller-repo",
34+
"description": null,
35+
"fork": false,
36+
"url": "https://api.github.com/repos/github/mrva-demo-controller-repo",
37+
"forks_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/forks",
38+
"keys_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/keys{/key_id}",
39+
"collaborators_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/collaborators{/collaborator}",
40+
"teams_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/teams",
41+
"hooks_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/hooks",
42+
"issue_events_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/issues/events{/number}",
43+
"events_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/events",
44+
"assignees_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/assignees{/user}",
45+
"branches_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/branches{/branch}",
46+
"tags_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/tags",
47+
"blobs_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/blobs{/sha}",
48+
"git_tags_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/tags{/sha}",
49+
"git_refs_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/refs{/sha}",
50+
"trees_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/trees{/sha}",
51+
"statuses_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/statuses/{sha}",
52+
"languages_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/languages",
53+
"stargazers_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/stargazers",
54+
"contributors_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/contributors",
55+
"subscribers_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/subscribers",
56+
"subscription_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/subscription",
57+
"commits_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/commits{/sha}",
58+
"git_commits_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/commits{/sha}",
59+
"comments_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/comments{/number}",
60+
"issue_comment_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/issues/comments{/number}",
61+
"contents_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/contents/{+path}",
62+
"compare_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/compare/{base}...{head}",
63+
"merges_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/merges",
64+
"archive_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/{archive_format}{/ref}",
65+
"downloads_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/downloads",
66+
"issues_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/issues{/number}",
67+
"pulls_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/pulls{/number}",
68+
"milestones_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/milestones{/number}",
69+
"notifications_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/notifications{?since,all,participating}",
70+
"labels_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/labels{/name}",
71+
"releases_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/releases{/id}",
72+
"deployments_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/deployments",
73+
"created_at": "2022-10-26T10:37:59Z",
74+
"updated_at": "2022-10-26T10:37:59Z",
75+
"pushed_at": "2022-10-26T10:38:02Z",
76+
"git_url": "git://github.com/github/mrva-demo-controller-repo.git",
77+
"ssh_url": "[email protected]:github/mrva-demo-controller-repo.git",
78+
"clone_url": "https://github.com/github/mrva-demo-controller-repo.git",
79+
"svn_url": "https://github.com/github/mrva-demo-controller-repo",
80+
"homepage": null,
81+
"size": 0,
82+
"stargazers_count": 0,
83+
"watchers_count": 0,
84+
"language": null,
85+
"has_issues": true,
86+
"has_projects": true,
87+
"has_downloads": true,
88+
"has_wiki": true,
89+
"has_pages": false,
90+
"forks_count": 0,
91+
"mirror_url": null,
92+
"archived": false,
93+
"disabled": false,
94+
"open_issues_count": 0,
95+
"license": null,
96+
"allow_forking": false,
97+
"is_template": false,
98+
"web_commit_signoff_required": false,
99+
"topics": [],
100+
"visibility": "private",
101+
"forks": 0,
102+
"open_issues": 0,
103+
"watchers": 0,
104+
"default_branch": "main",
105+
"permissions": {
106+
"admin": true,
107+
"maintain": true,
108+
"push": true,
109+
"triage": true,
110+
"pull": true
111+
},
112+
"temp_clone_token": "AACMDDJDUEDYNJMXGTD2FZDDLI32O",
113+
"allow_squash_merge": true,
114+
"allow_merge_commit": true,
115+
"allow_rebase_merge": true,
116+
"allow_auto_merge": false,
117+
"delete_branch_on_merge": false,
118+
"allow_update_branch": false,
119+
"use_squash_pr_title_as_default": false,
120+
"squash_merge_commit_message": "COMMIT_MESSAGES",
121+
"squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
122+
"merge_commit_message": "PR_TITLE",
123+
"merge_commit_title": "MERGE_MESSAGE",
124+
"organization": {
125+
"login": "github",
126+
"id": 9919,
127+
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
128+
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
129+
"gravatar_id": "",
130+
"url": "https://api.github.com/users/github",
131+
"html_url": "https://github.com/github",
132+
"followers_url": "https://api.github.com/users/github/followers",
133+
"following_url": "https://api.github.com/users/github/following{/other_user}",
134+
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
135+
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
136+
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
137+
"organizations_url": "https://api.github.com/users/github/orgs",
138+
"repos_url": "https://api.github.com/users/github/repos",
139+
"events_url": "https://api.github.com/users/github/events{/privacy}",
140+
"received_events_url": "https://api.github.com/users/github/received_events",
141+
"type": "Organization",
142+
"site_admin": false
143+
},
144+
"security_and_analysis": {
145+
"advanced_security": {
146+
"status": "enabled"
147+
},
148+
"secret_scanning": {
149+
"status": "enabled"
150+
},
151+
"secret_scanning_push_protection": {
152+
"status": "enabled"
153+
}
154+
},
155+
"network_count": 0,
156+
"subscribers_count": 0
157+
}
158+
}
159+
}
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
"request": {
3+
"kind": "submitVariantAnalysis"
4+
},
5+
"response": {
6+
"status": 201,
7+
"body": {
8+
"id": 151,
9+
"controller_repo": {
10+
"id": 557804416,
11+
"node_id": "R_kgDOIT9rgA",
12+
"name": "mrva-demo-controller-repo",
13+
"full_name": "github/mrva-demo-controller-repo",
14+
"private": true,
15+
"owner": {
16+
"login": "github",
17+
"id": 9919,
18+
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
19+
"avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
20+
"gravatar_id": "",
21+
"url": "https://api.github.com/users/github",
22+
"html_url": "https://github.com/github",
23+
"followers_url": "https://api.github.com/users/github/followers",
24+
"following_url": "https://api.github.com/users/github/following{/other_user}",
25+
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
26+
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
27+
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
28+
"organizations_url": "https://api.github.com/users/github/orgs",
29+
"repos_url": "https://api.github.com/users/github/repos",
30+
"events_url": "https://api.github.com/users/github/events{/privacy}",
31+
"received_events_url": "https://api.github.com/users/github/received_events",
32+
"type": "Organization",
33+
"site_admin": false
34+
},
35+
"html_url": "https://github.com/github/mrva-demo-controller-repo",
36+
"description": null,
37+
"fork": false,
38+
"url": "https://api.github.com/repos/github/mrva-demo-controller-repo",
39+
"forks_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/forks",
40+
"keys_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/keys{/key_id}",
41+
"collaborators_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/collaborators{/collaborator}",
42+
"teams_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/teams",
43+
"hooks_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/hooks",
44+
"issue_events_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/issues/events{/number}",
45+
"events_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/events",
46+
"assignees_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/assignees{/user}",
47+
"branches_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/branches{/branch}",
48+
"tags_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/tags",
49+
"blobs_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/blobs{/sha}",
50+
"git_tags_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/tags{/sha}",
51+
"git_refs_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/refs{/sha}",
52+
"trees_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/trees{/sha}",
53+
"statuses_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/statuses/{sha}",
54+
"languages_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/languages",
55+
"stargazers_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/stargazers",
56+
"contributors_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/contributors",
57+
"subscribers_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/subscribers",
58+
"subscription_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/subscription",
59+
"commits_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/commits{/sha}",
60+
"git_commits_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/git/commits{/sha}",
61+
"comments_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/comments{/number}",
62+
"issue_comment_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/issues/comments{/number}",
63+
"contents_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/contents/{+path}",
64+
"compare_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/compare/{base}...{head}",
65+
"merges_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/merges",
66+
"archive_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/{archive_format}{/ref}",
67+
"downloads_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/downloads",
68+
"issues_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/issues{/number}",
69+
"pulls_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/pulls{/number}",
70+
"milestones_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/milestones{/number}",
71+
"notifications_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/notifications{?since,all,participating}",
72+
"labels_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/labels{/name}",
73+
"releases_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/releases{/id}",
74+
"deployments_url": "https://api.github.com/repos/github/mrva-demo-controller-repo/deployments"
75+
},
76+
"actor": {
77+
"login": "charisk",
78+
"id": 311693,
79+
"node_id": "MDQ6VXNlcjMxMTY5Mw==",
80+
"avatar_url": "https://avatars.githubusercontent.com/u/311693?v=4",
81+
"gravatar_id": "",
82+
"url": "https://api.github.com/users/charisk",
83+
"html_url": "https://github.com/charisk",
84+
"followers_url": "https://api.github.com/users/charisk/followers",
85+
"following_url": "https://api.github.com/users/charisk/following{/other_user}",
86+
"gists_url": "https://api.github.com/users/charisk/gists{/gist_id}",
87+
"starred_url": "https://api.github.com/users/charisk/starred{/owner}{/repo}",
88+
"subscriptions_url": "https://api.github.com/users/charisk/subscriptions",
89+
"organizations_url": "https://api.github.com/users/charisk/orgs",
90+
"repos_url": "https://api.github.com/users/charisk/repos",
91+
"events_url": "https://api.github.com/users/charisk/events{/privacy}",
92+
"received_events_url": "https://api.github.com/users/charisk/received_events",
93+
"type": "User",
94+
"site_admin": true
95+
},
96+
"query_language": "javascript",
97+
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/151/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221027T074259Z&X-Amz-Expires=3600&X-Amz-Signature=e4cda8a5cf9fdb154204dea6bc0ddd70ba5fbc3b3102e922368e08391f7c47de&X-Amz-SignedHeaders=host",
98+
"created_at": "2022-10-27T07:42:59Z",
99+
"updated_at": "2022-10-27T07:42:59Z",
100+
"status": "in_progress",
101+
"skipped_repositories": {}
102+
}
103+
}
104+
}

0 commit comments

Comments
 (0)