Skip to content

Instantly share code, notes, and snippets.

@Jaid
Created November 27, 2019 00:33
Show Gist options
  • Select an option

  • Save Jaid/05c752b60acf8f6bc9a2a41bbd4a36c0 to your computer and use it in GitHub Desktop.

Select an option

Save Jaid/05c752b60acf8f6bc9a2a41bbd4a36c0 to your computer and use it in GitHub Desktop.
Example for import {context} from "@actions/github"
{
"payload": {
"after": "3748189200ee301c759048e8ff54c892a3c1b18c",
"base_ref": "refs/heads/master",
"before": "0000000000000000000000000000000000000000",
"commits": [],
"compare": "https://github.com/Jaid/test/compare/v0.1.8",
"created": true,
"deleted": false,
"forced": false,
"head_commit": {
"author": {
"email": "jaid.jsx@gmail.com",
"name": "Jaid",
"username": "Jaid"
},
"committer": {
"email": "jaid.jsx@gmail.com",
"name": "Jaid",
"username": "Jaid"
},
"distinct": true,
"id": "3748189200ee301c759048e8ff54c892a3c1b18c",
"message": "Bumped package version (patch)",
"timestamp": "2019-11-27T01:20:11+01:00",
"tree_id": "710c07766db948c9ab15f84a8a10447b402df7d3",
"url": "https://github.com/Jaid/test/commit/3748189200ee301c759048e8ff54c892a3c1b18c"
},
"pusher": {
"email": null,
"name": "nodejs-changelog-writer[bot]"
},
"ref": "refs/tags/v0.1.8",
"repository": {
"archive_url": "https://api.github.com/repos/Jaid/test/{archive_format}{/ref}",
"archived": false,
"assignees_url": "https://api.github.com/repos/Jaid/test/assignees{/user}",
"blobs_url": "https://api.github.com/repos/Jaid/test/git/blobs{/sha}",
"branches_url": "https://api.github.com/repos/Jaid/test/branches{/branch}",
"clone_url": "https://github.com/Jaid/test.git",
"collaborators_url": "https://api.github.com/repos/Jaid/test/collaborators{/collaborator}",
"comments_url": "https://api.github.com/repos/Jaid/test/comments{/number}",
"commits_url": "https://api.github.com/repos/Jaid/test/commits{/sha}",
"compare_url": "https://api.github.com/repos/Jaid/test/compare/{base}...{head}",
"contents_url": "https://api.github.com/repos/Jaid/test/contents/{+path}",
"contributors_url": "https://api.github.com/repos/Jaid/test/contributors",
"created_at": 1574240524,
"default_branch": "master",
"deployments_url": "https://api.github.com/repos/Jaid/test/deployments",
"description": "A sandbox repository for experimenting.",
"disabled": false,
"downloads_url": "https://api.github.com/repos/Jaid/test/downloads",
"events_url": "https://api.github.com/repos/Jaid/test/events",
"fork": false,
"forks": 0,
"forks_count": 0,
"forks_url": "https://api.github.com/repos/Jaid/test/forks",
"full_name": "Jaid/test",
"git_commits_url": "https://api.github.com/repos/Jaid/test/git/commits{/sha}",
"git_refs_url": "https://api.github.com/repos/Jaid/test/git/refs{/sha}",
"git_tags_url": "https://api.github.com/repos/Jaid/test/git/tags{/sha}",
"git_url": "git://github.com/Jaid/test.git",
"has_downloads": true,
"has_issues": true,
"has_pages": false,
"has_projects": true,
"has_wiki": true,
"homepage": "https://github.com/Jaid/test",
"hooks_url": "https://api.github.com/repos/Jaid/test/hooks",
"html_url": "https://github.com/Jaid/test",
"id": 222894493,
"issue_comment_url": "https://api.github.com/repos/Jaid/test/issues/comments{/number}",
"issue_events_url": "https://api.github.com/repos/Jaid/test/issues/events{/number}",
"issues_url": "https://api.github.com/repos/Jaid/test/issues{/number}",
"keys_url": "https://api.github.com/repos/Jaid/test/keys{/key_id}",
"labels_url": "https://api.github.com/repos/Jaid/test/labels{/name}",
"language": "JavaScript",
"languages_url": "https://api.github.com/repos/Jaid/test/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/Jaid/test/merges",
"milestones_url": "https://api.github.com/repos/Jaid/test/milestones{/number}",
"mirror_url": null,
"name": "test",
"node_id": "MDEwOlJlcG9zaXRvcnkyMjI4OTQ0OTM=",
"notifications_url": "https://api.github.com/repos/Jaid/test/notifications{?since,all,participating}",
"open_issues": 0,
"open_issues_count": 0,
"owner": {
"avatar_url": "https://avatars3.githubusercontent.com/u/6216144?v=4",
"email": "jaid.jsx@gmail.com",
"events_url": "https://api.github.com/users/Jaid/events{/privacy}",
"followers_url": "https://api.github.com/users/Jaid/followers",
"following_url": "https://api.github.com/users/Jaid/following{/other_user}",
"gists_url": "https://api.github.com/users/Jaid/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Jaid",
"id": 6216144,
"login": "Jaid",
"name": "Jaid",
"node_id": "MDQ6VXNlcjYyMTYxNDQ=",
"organizations_url": "https://api.github.com/users/Jaid/orgs",
"received_events_url": "https://api.github.com/users/Jaid/received_events",
"repos_url": "https://api.github.com/users/Jaid/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Jaid/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jaid/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Jaid"
},
"private": false,
"pulls_url": "https://api.github.com/repos/Jaid/test/pulls{/number}",
"pushed_at": 1574814017,
"releases_url": "https://api.github.com/repos/Jaid/test/releases{/id}",
"size": 1052,
"ssh_url": "git@github.com:Jaid/test.git",
"stargazers": 0,
"stargazers_count": 0,
"stargazers_url": "https://api.github.com/repos/Jaid/test/stargazers",
"statuses_url": "https://api.github.com/repos/Jaid/test/statuses/{sha}",
"subscribers_url": "https://api.github.com/repos/Jaid/test/subscribers",
"subscription_url": "https://api.github.com/repos/Jaid/test/subscription",
"svn_url": "https://github.com/Jaid/test",
"tags_url": "https://api.github.com/repos/Jaid/test/tags",
"teams_url": "https://api.github.com/repos/Jaid/test/teams",
"trees_url": "https://api.github.com/repos/Jaid/test/git/trees{/sha}",
"updated_at": "2019-11-27T00:20:17Z",
"url": "https://github.com/Jaid/test",
"watchers": 0,
"watchers_count": 0
},
"sender": {
"avatar_url": "https://avatars0.githubusercontent.com/in/39410?v=4",
"events_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/events{/privacy}",
"followers_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/apps/nodejs-changelog-writer",
"id": 54471281,
"login": "nodejs-changelog-writer[bot]",
"node_id": "MDM6Qm90NTQ0NzEyODE=",
"organizations_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/orgs",
"received_events_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/received_events",
"repos_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D/subscriptions",
"type": "Bot",
"url": "https://api.github.com/users/nodejs-changelog-writer%5Bbot%5D"
}
},
"eventName": "push",
"sha": "3748189200ee301c759048e8ff54c892a3c1b18c",
"ref": "refs/tags/v0.1.8",
"workflow": "Publish Node package",
"action": "jaidaction-publish",
"actor": "nodejs-changelog-writer[bot]"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment