Skip to content

Commit

Permalink
feat: update {App, Installation}#permissions with additional permis…
Browse files Browse the repository at this point in the history
…sions, add `changes` property to `RepositoryRenamedEvent`, `ReleaseAsset#label` can be `null`, `Installation#suspended_{at, by}` are always present (#499)

* fix: add `discussions` permission to `App`
* feat: add `changes` property to `RepositoryRenamedEvent`
* fix: `ReleaseAsset#label` can be `null`
* fix: `Installation#suspended_{at, by}` are always present
* fix: update app & installation permissions
* build: generate types
  • Loading branch information
wolfy1339 committed Jun 9, 2021
1 parent b60f513 commit f234adf
Show file tree
Hide file tree
Showing 12 changed files with 400 additions and 31 deletions.
162 changes: 157 additions & 5 deletions payload-examples/api.github.com/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -13303,7 +13303,9 @@
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
"single_file_name": null,
"suspended_at": null,
"suspended_by": null
},
"repositories": [
{
Expand Down Expand Up @@ -13383,7 +13385,9 @@
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
"single_file_name": null,
"suspended_at": null,
"suspended_by": null
},
"repositories": [
{
Expand Down Expand Up @@ -13474,7 +13478,9 @@
"events": ["push", "pull_request"],
"created_at": 1525109898,
"updated_at": 1525109899,
"single_file_name": "config.yml"
"single_file_name": "config.yml",
"suspended_at": null,
"suspended_by": null
},
"repositories": [
{
Expand Down Expand Up @@ -14087,7 +14093,9 @@
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
"single_file_name": null,
"suspended_at": null,
"suspended_by": null
},
"repository_selection": "selected",
"repositories_added": [
Expand Down Expand Up @@ -14180,7 +14188,9 @@
"events": ["push", "pull_request"],
"created_at": 1525109898,
"updated_at": 1525109899,
"single_file_name": "config.yml"
"single_file_name": "config.yml",
"suspended_at": null,
"suspended_by": null
},
"repository_selection": "selected",
"repositories_added": [],
Expand Down Expand Up @@ -54595,6 +54605,148 @@
"site_admin": false
}
},
{
"action": "renamed",
"changes": {
"repository": {
"name": {
"from": "Hello-World"
}
}
},
"repository": {
"id": 186853261,
"node_id": "MDEwOlJlcG9zaXRvcnkxODY4NTMyNjE=",
"name": "Hello-World",
"full_name": "Octocoders/Hello-World",
"private": false,
"owner": {
"login": "Octocoders",
"id": 38302899,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",
"avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Octocoders",
"html_url": "https://github.com/Octocoders",
"followers_url": "https://api.github.com/users/Octocoders/followers",
"following_url": "https://api.github.com/users/Octocoders/following{/other_user}",
"gists_url": "https://api.github.com/users/Octocoders/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Octocoders/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Octocoders/subscriptions",
"organizations_url": "https://api.github.com/users/Octocoders/orgs",
"repos_url": "https://api.github.com/users/Octocoders/repos",
"events_url": "https://api.github.com/users/Octocoders/events{/privacy}",
"received_events_url": "https://api.github.com/users/Octocoders/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/Octocoders/Hello-World",
"description": null,
"fork": true,
"url": "https://api.github.com/repos/Octocoders/Hello-World",
"forks_url": "https://api.github.com/repos/Octocoders/Hello-World/forks",
"keys_url": "https://api.github.com/repos/Octocoders/Hello-World/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/Octocoders/Hello-World/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/Octocoders/Hello-World/teams",
"hooks_url": "https://api.github.com/repos/Octocoders/Hello-World/hooks",
"issue_events_url": "https://api.github.com/repos/Octocoders/Hello-World/issues/events{/number}",
"events_url": "https://api.github.com/repos/Octocoders/Hello-World/events",
"assignees_url": "https://api.github.com/repos/Octocoders/Hello-World/assignees{/user}",
"branches_url": "https://api.github.com/repos/Octocoders/Hello-World/branches{/branch}",
"tags_url": "https://api.github.com/repos/Octocoders/Hello-World/tags",
"blobs_url": "https://api.github.com/repos/Octocoders/Hello-World/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/Octocoders/Hello-World/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/Octocoders/Hello-World/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/Octocoders/Hello-World/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/Octocoders/Hello-World/statuses/{sha}",
"languages_url": "https://api.github.com/repos/Octocoders/Hello-World/languages",
"stargazers_url": "https://api.github.com/repos/Octocoders/Hello-World/stargazers",
"contributors_url": "https://api.github.com/repos/Octocoders/Hello-World/contributors",
"subscribers_url": "https://api.github.com/repos/Octocoders/Hello-World/subscribers",
"subscription_url": "https://api.github.com/repos/Octocoders/Hello-World/subscription",
"commits_url": "https://api.github.com/repos/Octocoders/Hello-World/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/Octocoders/Hello-World/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/Octocoders/Hello-World/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/Octocoders/Hello-World/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/Octocoders/Hello-World/contents/{+path}",
"compare_url": "https://api.github.com/repos/Octocoders/Hello-World/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/Octocoders/Hello-World/merges",
"archive_url": "https://api.github.com/repos/Octocoders/Hello-World/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/Octocoders/Hello-World/downloads",
"issues_url": "https://api.github.com/repos/Octocoders/Hello-World/issues{/number}",
"pulls_url": "https://api.github.com/repos/Octocoders/Hello-World/pulls{/number}",
"milestones_url": "https://api.github.com/repos/Octocoders/Hello-World/milestones{/number}",
"notifications_url": "https://api.github.com/repos/Octocoders/Hello-World/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/Octocoders/Hello-World/labels{/name}",
"releases_url": "https://api.github.com/repos/Octocoders/Hello-World/releases{/id}",
"deployments_url": "https://api.github.com/repos/Octocoders/Hello-World/deployments",
"created_at": "2019-05-15T15:20:42Z",
"updated_at": "2019-05-15T15:20:41Z",
"pushed_at": "2019-05-15T15:20:33Z",
"git_url": "git://github.com/Octocoders/Hello-World.git",
"ssh_url": "git@github.com:Octocoders/Hello-World.git",
"clone_url": "https://github.com/Octocoders/Hello-World.git",
"svn_url": "https://github.com/Octocoders/Hello-World",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": false,
"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
},
"organization": {
"login": "Octocoders",
"id": 38302899,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5",
"url": "https://api.github.com/orgs/Octocoders",
"repos_url": "https://api.github.com/orgs/Octocoders/repos",
"events_url": "https://api.github.com/orgs/Octocoders/events",
"hooks_url": "https://api.github.com/orgs/Octocoders/hooks",
"issues_url": "https://api.github.com/orgs/Octocoders/issues",
"members_url": "https://api.github.com/orgs/Octocoders/members{/member}",
"public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}",
"avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4",
"description": ""
},
"installation": {
"id": 1,
"node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ=="
}
},
{
"action": "transferred",
"changes": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
"single_file_name": null,
"suspended_at": null,
"suspended_by": null
},
"repositories": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
"single_file_name": null,
"suspended_at": null,
"suspended_by": null
},
"repositories": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"events": ["push", "pull_request"],
"created_at": 1525109898,
"updated_at": 1525109899,
"single_file_name": "config.yml"
"single_file_name": "config.yml",
"suspended_at": null,
"suspended_by": null
},
"repositories": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
"events": [],
"created_at": 1557933591,
"updated_at": 1557933591,
"single_file_name": null
"single_file_name": null,
"suspended_at": null,
"suspended_by": null
},
"repository_selection": "selected",
"repositories_added": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"events": ["push", "pull_request"],
"created_at": 1525109898,
"updated_at": 1525109899,
"single_file_name": "config.yml"
"single_file_name": "config.yml",
"suspended_at": null,
"suspended_by": null
},
"repository_selection": "selected",
"repositories_added": [],
Expand Down
Loading

0 comments on commit f234adf

Please sign in to comment.