discourse/spec/fixtures/onebox/githubactions_actions_run.response
Dan Ungureanu 723d7de18c
Various GitHub Onebox improvements (#13163)
* FIX: Improve GitHub folder regexp in Onebox

It used to match any GitHub URL that was not matched by the other GitHub
Oneboxes and it did not do a good job at handling those. With this
change, the generic Onebox will handle the remaining URLs.

* FEATURE: Add Onebox for GitHub Actions

* FEATURE: Add Onebox for PR check runs

* FIX: Remove image from GitHub folder Oneboxes

It is a generic, auto-generated image which does not provide any value.

* DEV: Add tests

* FIX: Strip HTML comments from PR body
2021-05-27 12:38:42 +03:00

176 lines
11 KiB
Plaintext

{
"id": 873214216,
"name": "Linting",
"node_id": "WFR_lAHOADEiqs4Ac4CqzjQMMQg",
"head_branch": "simplify-deleted-post-copy",
"head_sha": "929e4ee5e93e53f45c7be78fcf81b734120af9c0",
"run_number": 2687,
"event": "pull_request",
"status": "completed",
"conclusion": "success",
"workflow_id": 5947272,
"check_suite_id": 2820222471,
"check_suite_node_id": "MDEwOkNoZWNrU3VpdGUyODIwMjIyNDcx",
"url": "https://api.github.com/repos/discourse/discourse/actions/runs/873214216",
"html_url": "https://github.com/discourse/discourse/actions/runs/873214216",
"pull_requests": [
],
"created_at": "2021-05-25T01:10:28Z",
"updated_at": "2021-05-25T01:15:56Z",
"jobs_url": "https://api.github.com/repos/discourse/discourse/actions/runs/873214216/jobs",
"logs_url": "https://api.github.com/repos/discourse/discourse/actions/runs/873214216/logs",
"check_suite_url": "https://api.github.com/repos/discourse/discourse/check-suites/2820222471",
"artifacts_url": "https://api.github.com/repos/discourse/discourse/actions/runs/873214216/artifacts",
"cancel_url": "https://api.github.com/repos/discourse/discourse/actions/runs/873214216/cancel",
"rerun_url": "https://api.github.com/repos/discourse/discourse/actions/runs/873214216/rerun",
"workflow_url": "https://api.github.com/repos/discourse/discourse/actions/workflows/5947272",
"head_commit": {
"id": "929e4ee5e93e53f45c7be78fcf81b734120af9c0",
"tree_id": "3d8f1301a94fd5bad68684e2fe1212ad890dcd79",
"message": "Remove deleted_by_author key\n\nThis has to be done to avoid errors because the old translation\nhad a one and many key, whereas the new one has no count.",
"timestamp": "2021-05-25T01:09:40Z",
"author": {
"name": "Martin Brennan",
"email": "martin@discourse.org"
},
"committer": {
"name": "Martin Brennan",
"email": "martin@discourse.org"
}
},
"repository": {
"id": 7569578,
"node_id": "MDEwOlJlcG9zaXRvcnk3NTY5NTc4",
"name": "discourse",
"full_name": "discourse/discourse",
"private": false,
"owner": {
"login": "discourse",
"id": 3220138,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjMyMjAxMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3220138?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/discourse",
"html_url": "https://github.com/discourse",
"followers_url": "https://api.github.com/users/discourse/followers",
"following_url": "https://api.github.com/users/discourse/following{/other_user}",
"gists_url": "https://api.github.com/users/discourse/gists{/gist_id}",
"starred_url": "https://api.github.com/users/discourse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/discourse/subscriptions",
"organizations_url": "https://api.github.com/users/discourse/orgs",
"repos_url": "https://api.github.com/users/discourse/repos",
"events_url": "https://api.github.com/users/discourse/events{/privacy}",
"received_events_url": "https://api.github.com/users/discourse/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/discourse/discourse",
"description": "A platform for community discussion. Free, open, simple.",
"fork": false,
"url": "https://api.github.com/repos/discourse/discourse",
"forks_url": "https://api.github.com/repos/discourse/discourse/forks",
"keys_url": "https://api.github.com/repos/discourse/discourse/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/discourse/discourse/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/discourse/discourse/teams",
"hooks_url": "https://api.github.com/repos/discourse/discourse/hooks",
"issue_events_url": "https://api.github.com/repos/discourse/discourse/issues/events{/number}",
"events_url": "https://api.github.com/repos/discourse/discourse/events",
"assignees_url": "https://api.github.com/repos/discourse/discourse/assignees{/user}",
"branches_url": "https://api.github.com/repos/discourse/discourse/branches{/branch}",
"tags_url": "https://api.github.com/repos/discourse/discourse/tags",
"blobs_url": "https://api.github.com/repos/discourse/discourse/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/discourse/discourse/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/discourse/discourse/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/discourse/discourse/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/discourse/discourse/statuses/{sha}",
"languages_url": "https://api.github.com/repos/discourse/discourse/languages",
"stargazers_url": "https://api.github.com/repos/discourse/discourse/stargazers",
"contributors_url": "https://api.github.com/repos/discourse/discourse/contributors",
"subscribers_url": "https://api.github.com/repos/discourse/discourse/subscribers",
"subscription_url": "https://api.github.com/repos/discourse/discourse/subscription",
"commits_url": "https://api.github.com/repos/discourse/discourse/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/discourse/discourse/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/discourse/discourse/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/discourse/discourse/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/discourse/discourse/contents/{+path}",
"compare_url": "https://api.github.com/repos/discourse/discourse/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/discourse/discourse/merges",
"archive_url": "https://api.github.com/repos/discourse/discourse/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/discourse/discourse/downloads",
"issues_url": "https://api.github.com/repos/discourse/discourse/issues{/number}",
"pulls_url": "https://api.github.com/repos/discourse/discourse/pulls{/number}",
"milestones_url": "https://api.github.com/repos/discourse/discourse/milestones{/number}",
"notifications_url": "https://api.github.com/repos/discourse/discourse/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/discourse/discourse/labels{/name}",
"releases_url": "https://api.github.com/repos/discourse/discourse/releases{/id}",
"deployments_url": "https://api.github.com/repos/discourse/discourse/deployments"
},
"head_repository": {
"id": 7569578,
"node_id": "MDEwOlJlcG9zaXRvcnk3NTY5NTc4",
"name": "discourse",
"full_name": "discourse/discourse",
"private": false,
"owner": {
"login": "discourse",
"id": 3220138,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjMyMjAxMzg=",
"avatar_url": "https://avatars.githubusercontent.com/u/3220138?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/discourse",
"html_url": "https://github.com/discourse",
"followers_url": "https://api.github.com/users/discourse/followers",
"following_url": "https://api.github.com/users/discourse/following{/other_user}",
"gists_url": "https://api.github.com/users/discourse/gists{/gist_id}",
"starred_url": "https://api.github.com/users/discourse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/discourse/subscriptions",
"organizations_url": "https://api.github.com/users/discourse/orgs",
"repos_url": "https://api.github.com/users/discourse/repos",
"events_url": "https://api.github.com/users/discourse/events{/privacy}",
"received_events_url": "https://api.github.com/users/discourse/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/discourse/discourse",
"description": "A platform for community discussion. Free, open, simple.",
"fork": false,
"url": "https://api.github.com/repos/discourse/discourse",
"forks_url": "https://api.github.com/repos/discourse/discourse/forks",
"keys_url": "https://api.github.com/repos/discourse/discourse/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/discourse/discourse/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/discourse/discourse/teams",
"hooks_url": "https://api.github.com/repos/discourse/discourse/hooks",
"issue_events_url": "https://api.github.com/repos/discourse/discourse/issues/events{/number}",
"events_url": "https://api.github.com/repos/discourse/discourse/events",
"assignees_url": "https://api.github.com/repos/discourse/discourse/assignees{/user}",
"branches_url": "https://api.github.com/repos/discourse/discourse/branches{/branch}",
"tags_url": "https://api.github.com/repos/discourse/discourse/tags",
"blobs_url": "https://api.github.com/repos/discourse/discourse/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/discourse/discourse/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/discourse/discourse/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/discourse/discourse/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/discourse/discourse/statuses/{sha}",
"languages_url": "https://api.github.com/repos/discourse/discourse/languages",
"stargazers_url": "https://api.github.com/repos/discourse/discourse/stargazers",
"contributors_url": "https://api.github.com/repos/discourse/discourse/contributors",
"subscribers_url": "https://api.github.com/repos/discourse/discourse/subscribers",
"subscription_url": "https://api.github.com/repos/discourse/discourse/subscription",
"commits_url": "https://api.github.com/repos/discourse/discourse/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/discourse/discourse/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/discourse/discourse/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/discourse/discourse/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/discourse/discourse/contents/{+path}",
"compare_url": "https://api.github.com/repos/discourse/discourse/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/discourse/discourse/merges",
"archive_url": "https://api.github.com/repos/discourse/discourse/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/discourse/discourse/downloads",
"issues_url": "https://api.github.com/repos/discourse/discourse/issues{/number}",
"pulls_url": "https://api.github.com/repos/discourse/discourse/pulls{/number}",
"milestones_url": "https://api.github.com/repos/discourse/discourse/milestones{/number}",
"notifications_url": "https://api.github.com/repos/discourse/discourse/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/discourse/discourse/labels{/name}",
"releases_url": "https://api.github.com/repos/discourse/discourse/releases{/id}",
"deployments_url": "https://api.github.com/repos/discourse/discourse/deployments"
}
}