Skip to content

Commit

Permalink
feat: registry_package events
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed May 10, 2019
1 parent 4b55b6e commit 85bcaed
Showing 1 changed file with 249 additions and 0 deletions.
249 changes: 249 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5574,6 +5574,255 @@
}
]
},
{
"name": "registry_package",
"actions": [
"published",
"updated"
],
"examples": [
{
"event": "registry_package",
"payload": {
"action": "published",
"registry_package": {
"id": 10696,
"name": "hello-world-npm",
"package_type": "npm",
"html_url": "https://github.com/Codertocat/hello-world-npm/packages/10696",
"created_at": "2019-05-09T23:28:29Z",
"updated_at": "2019-05-09T23:28:29Z",
"owner": {
"login": "Codertocat",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"package_version": {
"id": 24147,
"version": "1.0.0",
"summary": "A simple npm package to demonstrate GitHub Package Registry",
"body": "# hello-world-npm\n\nThis is a simple npm package that demonstrates the [Github Package Registry](https://github.com/features/package-registry).\n\n## Installation \n\n`$ npm install`\n\n## Usage\n\n```\nconst myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n```\n\n",
"body_html": "<h1>hello-world-npm</h1>\n<p>This is a simple npm package that demonstrates the <a href=\"https://github.com/features/package-registry\">Github Package Registry</a>.</p>\n<h2>Installation</h2>\n<p><code>$ npm install</code></p>\n<h2>Usage</h2>\n<pre><code>const myPackage = require('hello-world-node-package');\nmyPackage.helloWorld();\n</code></pre>",
"release": {
"url": "https://api.github.com/repos/Codertocat/hello-world-npm/releases/17264286",
"html_url": "https://github.com/Codertocat/hello-world-npm/releases/tag/1.0.0",
"id": 17264286,
"tag_name": "1.0.0",
"target_commitish": "master",
"name": "1.0.0",
"draft": false,
"author": {
"login": "Codertocat",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"prerelease": false,
"created_at": "2019-05-09T23:24:40Z",
"published_at": "2019-05-09T23:26:59Z"
},
"manifest": "{\"_from\":\"\",\"_id\":\"@codertocat/hello-world-npm@1.0.0\",\"_nodeVersion\":\"10.0.0\",\"_npmUser\":{},\"_npmVersion\":\"5.6.0\",\"_shasum\":\"\",\"author\":{\"name\":\"Codertocat\"},\"bugs\":{\"url\":\"https://github.com/Codertocat/hello-world-npm/issues\"},\"description\":\"A simple npm package to demonstrate GitHub Package Registry\",\"dependencies\":null,\"devDependencies\":null,\"peerDependencies\":null,\"dist\":{\"integrity\":\"sha512-CcChRwjJk+pvGVERbgdjc0w5h6HrOs6jK6OJuHmFcmbnGuhiy9tPMtb4WcSSdvwrktAxf96LsJBNqeIHAEHl3A==\",\"shasum\":\"a413c56a12997ca1b56715ebe81d8c6e0ffe6abb\",\"tarball\":\"http://npm.pkg.github.com/@codertocat/hello-world-npm/-/@codertocat/hello-world-npm-1.0.0.tgz\"},\"gitHead\":\"6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b\",\"homepage\":\"https://github.com/Codertocat/hello-world-npm#readme\",\"license\":\"ISC\",\"main\":\"index.js\",\"name\":\"@codertocat/hello-world-npm\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/Codertocat/hello-world-npm.git\"},\"scripts\":{\"test\":\"echo \\\"Error: no test specified\\\" \\u0026\\u0026 exit 1\"},\"version\":\"1.0.0\"}",
"html_url": "https://github.com/Codertocat/hello-world-npm/packages/10696?version=1.0.0",
"tag_name": "1.0.0",
"target_commitish": "master",
"target_oid": "6c62fb45fe66bfb1ea9a66abc38f6a0cc974292b",
"draft": false,
"prerelease": false,
"created_at": "2019-05-09T23:28:29Z",
"updated_at": "2019-05-09T23:28:30Z",
"metadata": [],
"package_files": [
{
"download_url": "https://github-production-registry-package-file-4f11e5.s3.amazonaws.com/185882436/3e6d9b00-7288-11e9-9d72-c0df4c711800?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190509%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190509T232830Z&X-Amz-Expires=300&X-Amz-Signature=4b825c49cd93370123a77d0f97a4ebb0d44efb76da46faf1e382f0c668b35819&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=filename%3Dhello-world-npm-1.0.0-npm.tgz&response-content-type=application%2Foctet-stream",
"id": 92167,
"name": "hello-world-npm-1.0.0-npm.tgz",
"sha256": "ba703915435b6ca2ca666b5d8332db34bf9dc37a198ed70d3a5fa5d08b8415c8",
"sha1": "a413c56a12997ca1b56715ebe81d8c6e0ffe6abb",
"md5": "56ebbd5a5a03367f62d0c732bafd3c66",
"content_type": "application/octet-stream",
"state": "uploaded",
"size": 654,
"created_at": "2019-05-09T23:28:30Z",
"updated_at": "2019-05-09T23:28:30Z"
}
],
"author": {
"login": "Codertocat",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"installation_command": "npm install @Codertocat/@1.0.0"
},
"registry": {
"about_url": "https://help.github.com/about-github-package-registry",
"name": "GitHub npm registry",
"type": "npm",
"url": "https://npm.registry.github.com/@Codertocat",
"vendor": "GitHub Inc"
}
},
"repository": {
"id": 185882436,
"node_id": "MDEwOlJlcG9zaXRvcnkxODU4ODI0MzY=",
"name": "hello-world-npm",
"full_name": "Codertocat/hello-world-npm",
"private": true,
"owner": {
"login": "Codertocat",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
},
"html_url": "https://github.com/Codertocat/hello-world-npm",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/Codertocat/hello-world-npm",
"forks_url": "https://api.github.com/repos/Codertocat/hello-world-npm/forks",
"keys_url": "https://api.github.com/repos/Codertocat/hello-world-npm/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Codertocat/hello-world-npm/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Codertocat/hello-world-npm/teams",
"hooks_url": "https://api.github.com/repos/Codertocat/hello-world-npm/hooks",
"issue_events_url": "https://api.github.com/repos/Codertocat/hello-world-npm/issues/events{/number}",
"events_url": "https://api.github.com/repos/Codertocat/hello-world-npm/events",
"assignees_url": "https://api.github.com/repos/Codertocat/hello-world-npm/assignees{/user}",
"branches_url": "https://api.github.com/repos/Codertocat/hello-world-npm/branches{/branch}",
"tags_url": "https://api.github.com/repos/Codertocat/hello-world-npm/tags",
"blobs_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Codertocat/hello-world-npm/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Codertocat/hello-world-npm/languages",
"stargazers_url": "https://api.github.com/repos/Codertocat/hello-world-npm/stargazers",
"contributors_url": "https://api.github.com/repos/Codertocat/hello-world-npm/contributors",
"subscribers_url": "https://api.github.com/repos/Codertocat/hello-world-npm/subscribers",
"subscription_url": "https://api.github.com/repos/Codertocat/hello-world-npm/subscription",
"commits_url": "https://api.github.com/repos/Codertocat/hello-world-npm/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Codertocat/hello-world-npm/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Codertocat/hello-world-npm/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Codertocat/hello-world-npm/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Codertocat/hello-world-npm/contents/{+path}",
"compare_url": "https://api.github.com/repos/Codertocat/hello-world-npm/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Codertocat/hello-world-npm/merges",
"archive_url": "https://api.github.com/repos/Codertocat/hello-world-npm/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Codertocat/hello-world-npm/downloads",
"issues_url": "https://api.github.com/repos/Codertocat/hello-world-npm/issues{/number}",
"pulls_url": "https://api.github.com/repos/Codertocat/hello-world-npm/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Codertocat/hello-world-npm/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Codertocat/hello-world-npm/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Codertocat/hello-world-npm/labels{/name}",
"releases_url": "https://api.github.com/repos/Codertocat/hello-world-npm/releases{/id}",
"deployments_url": "https://api.github.com/repos/Codertocat/hello-world-npm/deployments",
"created_at": "2019-05-09T22:53:26Z",
"updated_at": "2019-05-09T23:24:42Z",
"pushed_at": "2019-05-09T23:27:00Z",
"git_url": "git://github.com/Codertocat/hello-world-npm.git",
"ssh_url": "git@github.com:Codertocat/hello-world-npm.git",
"clone_url": "https://github.com/Codertocat/hello-world-npm.git",
"svn_url": "https://github.com/Codertocat/hello-world-npm",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": "JavaScript",
"has_issues": true,
"has_projects": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"disabled": false,
"open_issues_count": 0,
"license": null,
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
},
"sender": {
"login": "Codertocat",
"id": 21031067,
"node_id": "MDQ6VXNlcjIxMDMxMDY3",
"avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Codertocat",
"html_url": "https://github.com/Codertocat",
"followers_url": "https://api.github.com/users/Codertocat/followers",
"following_url": "https://api.github.com/users/Codertocat/following{/other_user}",
"gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"type": "User",
"site_admin": false
}
}
}
]
},
{
"name": "release",
"actions": [
Expand Down

0 comments on commit 85bcaed

Please sign in to comment.