Skip to content

Commit 8e5099d

Browse files
authored
feat(types): new branch_protection_rule event (#624)
1 parent 5948350 commit 8e5099d

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ If there are actions for a webhook, events are emitted for both, the webhook nam
636636

637637
| Event | Actions |
638638
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
639+
| [`branch_protection_rule`](https://developer.github.com/v3/activity/events/types/#branchprotectionruleevent) | `created`<br>`deleted`<br>`edited` |
639640
| [`check_run`](https://developer.github.com/v3/activity/events/types/#checkrunevent) | `completed`<br>`created`<br>`requested_action`<br>`rerequested` |
640641
| [`check_suite`](https://developer.github.com/v3/activity/events/types/#checksuiteevent) | `completed`<br>`requested`<br>`rerequested` |
641642
| [`code_scanning_alert`](https://developer.github.com/v3/activity/events/types/#codescanningalertevent) | `appeared_in_branch`<br>`closed_by_user`<br>`created`<br>`fixed`<br>`reopened`<br>`reopened_by_user` |

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
"dependencies": {
2121
"@octokit/request-error": "^2.0.2",
2222
"@octokit/webhooks-methods": "^2.0.0",
23-
"@octokit/webhooks-types": "4.3.1",
23+
"@octokit/webhooks-types": "4.4.0",
2424
"aggregate-error": "^3.1.0"
2525
},
2626
"devDependencies": {
2727
"@jest/types": "^27.0.0",
2828
"@octokit/tsconfig": "^1.0.1",
29-
"@octokit/webhooks-schemas": "4.3.1",
29+
"@octokit/webhooks-schemas": "4.4.0",
3030
"@pika/pack": "^0.5.0",
3131
"@pika/plugin-build-node": "^0.9.2",
3232
"@pika/plugin-build-web": "^0.9.2",

src/generated/webhook-names.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// make edits in scripts/generate-types.ts
33

44
export const emitterEventNames = [
5+
"branch_protection_rule",
6+
"branch_protection_rule.created",
7+
"branch_protection_rule.deleted",
8+
"branch_protection_rule.edited",
59
"check_run",
610
"check_run.completed",
711
"check_run.created",

0 commit comments

Comments
 (0)