From e3fd628f0625cf202ef792795a53e327c19824f4 Mon Sep 17 00:00:00 2001 From: Michael Shick Date: Wed, 8 Apr 2020 16:58:43 -0700 Subject: [PATCH] chore: add a sample of a github context --- docs/sample-master-push.json | 181 +++++++++++++++++++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 docs/sample-master-push.json diff --git a/docs/sample-master-push.json b/docs/sample-master-push.json new file mode 100644 index 0000000..9cdb7c1 --- /dev/null +++ b/docs/sample-master-push.json @@ -0,0 +1,181 @@ +{ + "payload": { + "after": "566e30ed2c7a061fa9e14117c14eb385a197e750", + "base_ref": null, + "before": "76a68e332929a5f129a6cdfc496c6d98f6f9de7e", + "commits": [ + { + "author": { + "email": "m@shick.us", + "name": "Michael Shick", + "username": "mshick" + }, + "committer": { + "email": "m@shick.us", + "name": "Michael Shick", + "username": "mshick" + }, + "distinct": true, + "id": "566e30ed2c7a061fa9e14117c14eb385a197e750", + "message": "debug: adding context debugging", + "timestamp": "2020-04-08T16:49:21-07:00", + "tree_id": "055d2e982d249db10b8dd73fc1745ff97576ecc9", + "url": "https://github.com/mshick/add-pr-comment/commit/566e30ed2c7a061fa9e14117c14eb385a197e750" + } + ], + "compare": "https://github.com/mshick/add-pr-comment/compare/76a68e332929...566e30ed2c7a", + "created": false, + "deleted": false, + "forced": false, + "head_commit": { + "author": { + "email": "m@shick.us", + "name": "Michael Shick", + "username": "mshick" + }, + "committer": { + "email": "m@shick.us", + "name": "Michael Shick", + "username": "mshick" + }, + "distinct": true, + "id": "566e30ed2c7a061fa9e14117c14eb385a197e750", + "message": "debug: adding context debugging", + "timestamp": "2020-04-08T16:49:21-07:00", + "tree_id": "055d2e982d249db10b8dd73fc1745ff97576ecc9", + "url": "https://github.com/mshick/add-pr-comment/commit/566e30ed2c7a061fa9e14117c14eb385a197e750" + }, + "pusher": { "email": "m@shick.us", "name": "mshick" }, + "ref": "refs/heads/master", + "repository": { + "archive_url": "https://api.github.com/repos/mshick/add-pr-comment/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/mshick/add-pr-comment/assignees{/user}", + "blobs_url": "https://api.github.com/repos/mshick/add-pr-comment/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/mshick/add-pr-comment/branches{/branch}", + "clone_url": "https://github.com/mshick/add-pr-comment.git", + "collaborators_url": "https://api.github.com/repos/mshick/add-pr-comment/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/mshick/add-pr-comment/comments{/number}", + "commits_url": "https://api.github.com/repos/mshick/add-pr-comment/commits{/sha}", + "compare_url": "https://api.github.com/repos/mshick/add-pr-comment/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/mshick/add-pr-comment/contents/{+path}", + "contributors_url": "https://api.github.com/repos/mshick/add-pr-comment/contributors", + "created_at": 1574460704, + "default_branch": "master", + "deployments_url": "https://api.github.com/repos/mshick/add-pr-comment/deployments", + "description": "uses: mshick/add-pr-comment@v1", + "disabled": false, + "downloads_url": "https://api.github.com/repos/mshick/add-pr-comment/downloads", + "events_url": "https://api.github.com/repos/mshick/add-pr-comment/events", + "fork": false, + "forks": 2, + "forks_count": 2, + "forks_url": "https://api.github.com/repos/mshick/add-pr-comment/forks", + "full_name": "mshick/add-pr-comment", + "git_commits_url": "https://api.github.com/repos/mshick/add-pr-comment/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/mshick/add-pr-comment/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/mshick/add-pr-comment/git/tags{/sha}", + "git_url": "git://github.com/mshick/add-pr-comment.git", + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": true, + "has_wiki": true, + "homepage": "https://github.com/marketplace/actions/add-pr-comment", + "hooks_url": "https://api.github.com/repos/mshick/add-pr-comment/hooks", + "html_url": "https://github.com/mshick/add-pr-comment", + "id": 223494945, + "issue_comment_url": "https://api.github.com/repos/mshick/add-pr-comment/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/mshick/add-pr-comment/issues/events{/number}", + "issues_url": "https://api.github.com/repos/mshick/add-pr-comment/issues{/number}", + "keys_url": "https://api.github.com/repos/mshick/add-pr-comment/keys{/key_id}", + "labels_url": "https://api.github.com/repos/mshick/add-pr-comment/labels{/name}", + "language": "JavaScript", + "languages_url": "https://api.github.com/repos/mshick/add-pr-comment/languages", + "license": { + "key": "mit", + "name": "MIT License", + "node_id": "MDc6TGljZW5zZTEz", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit" + }, + "master_branch": "master", + "merges_url": "https://api.github.com/repos/mshick/add-pr-comment/merges", + "milestones_url": "https://api.github.com/repos/mshick/add-pr-comment/milestones{/number}", + "mirror_url": null, + "name": "add-pr-comment", + "node_id": "MDEwOlJlcG9zaXRvcnkyMjM0OTQ5NDU=", + "notifications_url": "https://api.github.com/repos/mshick/add-pr-comment/notifications{?since,all,participating}", + "open_issues": 1, + "open_issues_count": 1, + "owner": { + "avatar_url": "https://avatars1.githubusercontent.com/u/277401?v=4", + "email": "m@shick.us", + "events_url": "https://api.github.com/users/mshick/events{/privacy}", + "followers_url": "https://api.github.com/users/mshick/followers", + "following_url": "https://api.github.com/users/mshick/following{/other_user}", + "gists_url": "https://api.github.com/users/mshick/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/mshick", + "id": 277401, + "login": "mshick", + "name": "mshick", + "node_id": "MDQ6VXNlcjI3NzQwMQ==", + "organizations_url": "https://api.github.com/users/mshick/orgs", + "received_events_url": "https://api.github.com/users/mshick/received_events", + "repos_url": "https://api.github.com/users/mshick/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/mshick/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mshick/subscriptions", + "type": "User", + "url": "https://api.github.com/users/mshick" + }, + "private": false, + "pulls_url": "https://api.github.com/repos/mshick/add-pr-comment/pulls{/number}", + "pushed_at": 1586389768, + "releases_url": "https://api.github.com/repos/mshick/add-pr-comment/releases{/id}", + "size": 299, + "ssh_url": "git@github.com:mshick/add-pr-comment.git", + "stargazers": 8, + "stargazers_count": 8, + "stargazers_url": "https://api.github.com/repos/mshick/add-pr-comment/stargazers", + "statuses_url": "https://api.github.com/repos/mshick/add-pr-comment/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/mshick/add-pr-comment/subscribers", + "subscription_url": "https://api.github.com/repos/mshick/add-pr-comment/subscription", + "svn_url": "https://github.com/mshick/add-pr-comment", + "tags_url": "https://api.github.com/repos/mshick/add-pr-comment/tags", + "teams_url": "https://api.github.com/repos/mshick/add-pr-comment/teams", + "trees_url": "https://api.github.com/repos/mshick/add-pr-comment/git/trees{/sha}", + "updated_at": "2020-04-08T23:47:36Z", + "url": "https://github.com/mshick/add-pr-comment", + "watchers": 8, + "watchers_count": 8 + }, + "sender": { + "avatar_url": "https://avatars1.githubusercontent.com/u/277401?v=4", + "events_url": "https://api.github.com/users/mshick/events{/privacy}", + "followers_url": "https://api.github.com/users/mshick/followers", + "following_url": "https://api.github.com/users/mshick/following{/other_user}", + "gists_url": "https://api.github.com/users/mshick/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/mshick", + "id": 277401, + "login": "mshick", + "node_id": "MDQ6VXNlcjI3NzQwMQ==", + "organizations_url": "https://api.github.com/users/mshick/orgs", + "received_events_url": "https://api.github.com/users/mshick/received_events", + "repos_url": "https://api.github.com/users/mshick/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/mshick/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mshick/subscriptions", + "type": "User", + "url": "https://api.github.com/users/mshick" + } + }, + "eventName": "push", + "sha": "566e30ed2c7a061fa9e14117c14eb385a197e750", + "ref": "refs/heads/master", + "workflow": "test-local", + "action": "self", + "actor": "mshick" +}