Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch GitHub PR webhooks with the latest test data #202

Merged
merged 3 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
748 changes: 207 additions & 541 deletions cypress/fixtures/github/pull-request/1.json

Large diffs are not rendered by default.

963 changes: 420 additions & 543 deletions cypress/fixtures/github/pull-request/10.json

Large diffs are not rendered by default.

582 changes: 191 additions & 391 deletions cypress/fixtures/github/pull-request/11.json

Large diffs are not rendered by default.

432 changes: 248 additions & 184 deletions cypress/fixtures/github/pull-request/12.json

Large diffs are not rendered by default.

614 changes: 248 additions & 366 deletions cypress/fixtures/github/pull-request/13.json

Large diffs are not rendered by default.

621 changes: 428 additions & 193 deletions cypress/fixtures/github/pull-request/14.json

Large diffs are not rendered by default.

614 changes: 248 additions & 366 deletions cypress/fixtures/github/pull-request/15.json

Large diffs are not rendered by default.

505 changes: 256 additions & 249 deletions cypress/fixtures/github/pull-request/16.json

Large diffs are not rendered by default.

698 changes: 420 additions & 278 deletions cypress/fixtures/github/pull-request/17.json

Large diffs are not rendered by default.

647 changes: 256 additions & 391 deletions cypress/fixtures/github/pull-request/18.json

Large diffs are not rendered by default.

422 changes: 422 additions & 0 deletions cypress/fixtures/github/pull-request/19.json

Large diffs are not rendered by default.

561 changes: 170 additions & 391 deletions cypress/fixtures/github/pull-request/2.json

Large diffs are not rendered by default.

258 changes: 258 additions & 0 deletions cypress/fixtures/github/pull-request/20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
{
"headers": {
"user-agent": "GitHub-Hookshot/1049d02",
"x-github-event": "workflow_job",
"content-type": "application/json"
},
"body": {
"action": "completed",
"workflow_job": {
"id": 18380485929,
"run_id": 6763405170,
"workflow_name": "PR codestyle tests",
"head_branch": "webhook-runtime",
"run_url": "https://api.github.com/repos/FuturePortal/CIMonitor/actions/runs/6763405170",
"run_attempt": 1,
"node_id": "CR_kwDOA1saOs8AAAAER4_1KQ",
"head_sha": "0445766ab1893af802445d522a3f161e29124ad6",
"url": "https://api.github.com/repos/FuturePortal/CIMonitor/actions/jobs/18380485929",
"html_url": "https://github.com/FuturePortal/CIMonitor/actions/runs/6763405170/job/18380485929",
"status": "completed",
"conclusion": "success",
"created_at": "2023-11-05T19:50:35Z",
"started_at": "2023-11-05T19:50:40Z",
"completed_at": "2023-11-05T19:51:10Z",
"name": "Test / Frontend typescript",
"steps": [
{
"name": "Set up job",
"status": "completed",
"conclusion": "success",
"number": 1,
"started_at": "2023-11-05T19:50:39.000Z",
"completed_at": "2023-11-05T19:50:40.000Z"
},
{
"name": "Run actions/checkout@v3",
"status": "completed",
"conclusion": "success",
"number": 2,
"started_at": "2023-11-05T19:50:40.000Z",
"completed_at": "2023-11-05T19:50:41.000Z"
},
{
"name": "Run actions/setup-node@v3",
"status": "completed",
"conclusion": "success",
"number": 3,
"started_at": "2023-11-05T19:50:41.000Z",
"completed_at": "2023-11-05T19:50:44.000Z"
},
{
"name": "Install development dependencies",
"status": "completed",
"conclusion": "success",
"number": 4,
"started_at": "2023-11-05T19:50:44.000Z",
"completed_at": "2023-11-05T19:51:03.000Z"
},
{
"name": "Check frontend typescript",
"status": "completed",
"conclusion": "success",
"number": 5,
"started_at": "2023-11-05T19:51:03.000Z",
"completed_at": "2023-11-05T19:51:09.000Z"
},
{
"name": "Post Run actions/setup-node@v3",
"status": "completed",
"conclusion": "success",
"number": 9,
"started_at": "2023-11-05T19:51:09.000Z",
"completed_at": "2023-11-05T19:51:09.000Z"
},
{
"name": "Post Run actions/checkout@v3",
"status": "completed",
"conclusion": "success",
"number": 10,
"started_at": "2023-11-05T19:51:10.000Z",
"completed_at": "2023-11-05T19:51:10.000Z"
},
{
"name": "Complete job",
"status": "completed",
"conclusion": "success",
"number": 11,
"started_at": "2023-11-05T19:51:09.000Z",
"completed_at": "2023-11-05T19:51:09.000Z"
}
],
"check_run_url": "https://api.github.com/repos/FuturePortal/CIMonitor/check-runs/18380485929",
"labels": ["ubuntu-22.04"],
"runner_id": 4,
"runner_name": "GitHub Actions 4",
"runner_group_id": 2,
"runner_group_name": "GitHub Actions"
},
"repository": {
"id": 56302138,
"node_id": "MDEwOlJlcG9zaXRvcnk1NjMwMjEzOA==",
"name": "CIMonitor",
"full_name": "FuturePortal/CIMonitor",
"private": false,
"owner": {
"login": "FuturePortal",
"id": 8360031,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjgzNjAwMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8360031?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FuturePortal",
"html_url": "https://github.com/FuturePortal",
"followers_url": "https://api.github.com/users/FuturePortal/followers",
"following_url": "https://api.github.com/users/FuturePortal/following{/other_user}",
"gists_url": "https://api.github.com/users/FuturePortal/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FuturePortal/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FuturePortal/subscriptions",
"organizations_url": "https://api.github.com/users/FuturePortal/orgs",
"repos_url": "https://api.github.com/users/FuturePortal/repos",
"events_url": "https://api.github.com/users/FuturePortal/events{/privacy}",
"received_events_url": "https://api.github.com/users/FuturePortal/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/FuturePortal/CIMonitor",
"description": "Displays CI statuses on a dashboard and triggers fun modules representing the status!",
"fork": false,
"url": "https://api.github.com/repos/FuturePortal/CIMonitor",
"forks_url": "https://api.github.com/repos/FuturePortal/CIMonitor/forks",
"keys_url": "https://api.github.com/repos/FuturePortal/CIMonitor/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/FuturePortal/CIMonitor/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/FuturePortal/CIMonitor/teams",
"hooks_url": "https://api.github.com/repos/FuturePortal/CIMonitor/hooks",
"issue_events_url": "https://api.github.com/repos/FuturePortal/CIMonitor/issues/events{/number}",
"events_url": "https://api.github.com/repos/FuturePortal/CIMonitor/events",
"assignees_url": "https://api.github.com/repos/FuturePortal/CIMonitor/assignees{/user}",
"branches_url": "https://api.github.com/repos/FuturePortal/CIMonitor/branches{/branch}",
"tags_url": "https://api.github.com/repos/FuturePortal/CIMonitor/tags",
"blobs_url": "https://api.github.com/repos/FuturePortal/CIMonitor/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/FuturePortal/CIMonitor/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/FuturePortal/CIMonitor/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/FuturePortal/CIMonitor/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/FuturePortal/CIMonitor/statuses/{sha}",
"languages_url": "https://api.github.com/repos/FuturePortal/CIMonitor/languages",
"stargazers_url": "https://api.github.com/repos/FuturePortal/CIMonitor/stargazers",
"contributors_url": "https://api.github.com/repos/FuturePortal/CIMonitor/contributors",
"subscribers_url": "https://api.github.com/repos/FuturePortal/CIMonitor/subscribers",
"subscription_url": "https://api.github.com/repos/FuturePortal/CIMonitor/subscription",
"commits_url": "https://api.github.com/repos/FuturePortal/CIMonitor/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/FuturePortal/CIMonitor/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/FuturePortal/CIMonitor/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/FuturePortal/CIMonitor/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/FuturePortal/CIMonitor/contents/{+path}",
"compare_url": "https://api.github.com/repos/FuturePortal/CIMonitor/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/FuturePortal/CIMonitor/merges",
"archive_url": "https://api.github.com/repos/FuturePortal/CIMonitor/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/FuturePortal/CIMonitor/downloads",
"issues_url": "https://api.github.com/repos/FuturePortal/CIMonitor/issues{/number}",
"pulls_url": "https://api.github.com/repos/FuturePortal/CIMonitor/pulls{/number}",
"milestones_url": "https://api.github.com/repos/FuturePortal/CIMonitor/milestones{/number}",
"notifications_url": "https://api.github.com/repos/FuturePortal/CIMonitor/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/FuturePortal/CIMonitor/labels{/name}",
"releases_url": "https://api.github.com/repos/FuturePortal/CIMonitor/releases{/id}",
"deployments_url": "https://api.github.com/repos/FuturePortal/CIMonitor/deployments",
"created_at": "2016-04-15T07:57:09Z",
"updated_at": "2023-10-12T10:00:25Z",
"pushed_at": "2023-11-05T19:50:30Z",
"git_url": "git://github.com/FuturePortal/CIMonitor.git",
"ssh_url": "[email protected]:FuturePortal/CIMonitor.git",
"clone_url": "https://github.com/FuturePortal/CIMonitor.git",
"svn_url": "https://github.com/FuturePortal/CIMonitor",
"homepage": "",
"size": 53378,
"stargazers_count": 45,
"watchers_count": 45,
"language": "TypeScript",
"has_issues": true,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"has_discussions": false,
"forks_count": 12,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 2,
"license": {
"key": "mit",
"name": "MIT License",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit",
"node_id": "MDc6TGljZW5zZTEz"
},
"allow_forking": true,
"is_template": false,
"web_commit_signoff_required": false,
"topics": [
"cd",
"ci",
"ci-status",
"continuous-deployment",
"continuous-integration",
"dashboard",
"github",
"github-actions",
"gitlab",
"gpio",
"hacktoberfest",
"hacktoberfest2023",
"monitoring",
"pipeline",
"raspberry-pi",
"webhooks"
],
"visibility": "public",
"forks": 12,
"open_issues": 2,
"watchers": 45,
"default_branch": "master",
"custom_properties": {}
},
"organization": {
"login": "FuturePortal",
"id": 8360031,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjgzNjAwMzE=",
"url": "https://api.github.com/orgs/FuturePortal",
"repos_url": "https://api.github.com/orgs/FuturePortal/repos",
"events_url": "https://api.github.com/orgs/FuturePortal/events",
"hooks_url": "https://api.github.com/orgs/FuturePortal/hooks",
"issues_url": "https://api.github.com/orgs/FuturePortal/issues",
"members_url": "https://api.github.com/orgs/FuturePortal/members{/member}",
"public_members_url": "https://api.github.com/orgs/FuturePortal/public_members{/member}",
"avatar_url": "https://avatars.githubusercontent.com/u/8360031?v=4",
"description": "The portal to future open-source development"
},
"sender": {
"login": "rick-nu",
"id": 6495166,
"node_id": "MDQ6VXNlcjY0OTUxNjY=",
"avatar_url": "https://avatars.githubusercontent.com/u/6495166?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/rick-nu",
"html_url": "https://github.com/rick-nu",
"followers_url": "https://api.github.com/users/rick-nu/followers",
"following_url": "https://api.github.com/users/rick-nu/following{/other_user}",
"gists_url": "https://api.github.com/users/rick-nu/gists{/gist_id}",
"starred_url": "https://api.github.com/users/rick-nu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rick-nu/subscriptions",
"organizations_url": "https://api.github.com/users/rick-nu/orgs",
"repos_url": "https://api.github.com/users/rick-nu/repos",
"events_url": "https://api.github.com/users/rick-nu/events{/privacy}",
"received_events_url": "https://api.github.com/users/rick-nu/received_events",
"type": "User",
"site_admin": false
}
}
}
Loading