Skip to content

Commit

Permalink
feat: updates to repository_vulnerability_alert, check_suite, `wo…
Browse files Browse the repository at this point in the history
…rkflow_run`, `project`, `branch_protection_rule`, `pull_request.auto_merge_{enabled,disabled}` events

* feat: new `reopen` action for `repository_vulnerability_alert`
Fixes #611
* fix: `auto_merge_property` can also be an object
Fixes #608

* fix: `changes` property is not always present on `project.edited` event
This happens whenever you edit the automation in the project, but don't change the title or body

* fix: add missing `runs_rerequestable` and `rerequestable` to `check_suite.rerequested`
* fix: correct reference to common schema
* fix: add missing properties to `pull_request.auto_merge_{enabled,disabled}` and `branch_protection_rule.edited`
* feat: new `actor` and `triggering_actor` for `workflow_run`s
* fix: add missing properties to `repository_vulnerability_alert`

Adds the following properties:
- number
- state
- fixed_at
- fix_reason

Also normalize properties across actions

* fix: the `sender` for `repository_vulnerability_alert` is GitHub
  • Loading branch information
wolfy1339 committed Mar 10, 2022
1 parent d1f6a04 commit 201adb8
Show file tree
Hide file tree
Showing 30 changed files with 810 additions and 433 deletions.
42 changes: 41 additions & 1 deletion payload-examples/api.github.com/deployment/gh-pages.payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,47 @@
"created_at": "2022-01-03T01:27:48Z",
"updated_at": "2022-01-03T01:28:40Z",
"run_attempt": 1,
"run_started_at": "2022-01-03T01:27:48Z"
"run_started_at": "2022-01-03T01:27:48Z",
"actor": {
"avatar_url": "https://avatars0.githubusercontent.com/u/15669918?v=4",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"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}",
"gravatar_id": "",
"html_url": "https://github.com/Codertocat",
"id": 15669918,
"login": "Codertocat",
"node_id": "MDQ6VXNlcjE1NjY5OTE4",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Codertocat"
},
"triggering_actor": {
"avatar_url": "https://avatars0.githubusercontent.com/u/15669918?v=4",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"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}",
"gravatar_id": "",
"html_url": "https://github.com/Codertocat",
"id": 15669918,
"login": "Codertocat",
"node_id": "MDQ6VXNlcjE1NjY5OTE4",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Codertocat"
}
},
"repository": {
"id": 186853002,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,47 @@
"created_at": "2022-01-03T01:27:48Z",
"updated_at": "2022-01-03T01:28:40Z",
"run_attempt": 1,
"run_started_at": "2022-01-03T01:27:48Z"
"run_started_at": "2022-01-03T01:27:48Z",
"actor": {
"avatar_url": "https://avatars0.githubusercontent.com/u/15669918?v=4",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"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}",
"gravatar_id": "",
"html_url": "https://github.com/Codertocat",
"id": 15669918,
"login": "Codertocat",
"node_id": "MDQ6VXNlcjE1NjY5OTE4",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Codertocat"
},
"triggering_actor": {
"avatar_url": "https://avatars0.githubusercontent.com/u/15669918?v=4",
"events_url": "https://api.github.com/users/Codertocat/events{/privacy}",
"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}",
"gravatar_id": "",
"html_url": "https://github.com/Codertocat",
"id": 15669918,
"login": "Codertocat",
"node_id": "MDQ6VXNlcjE1NjY5OTE4",
"organizations_url": "https://api.github.com/users/Codertocat/orgs",
"received_events_url": "https://api.github.com/users/Codertocat/received_events",
"repos_url": "https://api.github.com/users/Codertocat/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Codertocat"
}
},
"repository": {
"id": 186853002,
Expand Down

0 comments on commit 201adb8

Please sign in to comment.