Skip to content

Commit 0e4f63c

Browse files
authored
feat(GHEC): remove user created/deleted events (#84)
BREAKING CHANGE: remove `user.created` and `user.deleted` events
1 parent 7dac0ad commit 0e4f63c

File tree

3 files changed

+0
-670
lines changed

3 files changed

+0
-670
lines changed

cache/ghec.json

Lines changed: 0 additions & 240 deletions
Original file line numberDiff line numberDiff line change
@@ -17868,152 +17868,6 @@
1786817868
}
1786917869
}
1787017870
},
17871-
"user-created": {
17872-
"post": {
17873-
"summary": "This event occurs when there is activity relating to user accounts in an enterprise.",
17874-
"description": "A user account was added to the enterprise.",
17875-
"operationId": "user/created",
17876-
"externalDocs": {
17877-
"url": "https://docs.github.com/enterprise-cloud@latest//webhooks/webhook-events-and-payloads#user"
17878-
},
17879-
"parameters": [
17880-
{
17881-
"name": "User-Agent",
17882-
"in": "header",
17883-
"example": "GitHub-Hookshot/123abc",
17884-
"schema": { "type": "string" }
17885-
},
17886-
{
17887-
"name": "X-Github-Hook-Id",
17888-
"in": "header",
17889-
"example": 12312312,
17890-
"schema": { "type": "string" }
17891-
},
17892-
{
17893-
"name": "X-Github-Event",
17894-
"in": "header",
17895-
"example": "issues",
17896-
"schema": { "type": "string" }
17897-
},
17898-
{
17899-
"name": "X-Github-Hook-Installation-Target-Id",
17900-
"in": "header",
17901-
"example": 123123,
17902-
"schema": { "type": "string" }
17903-
},
17904-
{
17905-
"name": "X-Github-Hook-Installation-Target-Type",
17906-
"in": "header",
17907-
"example": "repository",
17908-
"schema": { "type": "string" }
17909-
},
17910-
{
17911-
"name": "X-GitHub-Delivery",
17912-
"in": "header",
17913-
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
17914-
"schema": { "type": "string" }
17915-
},
17916-
{
17917-
"name": "X-Hub-Signature-256",
17918-
"in": "header",
17919-
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
17920-
"schema": { "type": "string" }
17921-
}
17922-
],
17923-
"requestBody": {
17924-
"required": true,
17925-
"content": {
17926-
"application/json": {
17927-
"schema": { "$ref": "#/components/schemas/webhook-user-created" }
17928-
}
17929-
}
17930-
},
17931-
"responses": {
17932-
"200": {
17933-
"description": "Return a 200 status to indicate that the data was received successfully"
17934-
}
17935-
},
17936-
"x-github": {
17937-
"githubCloudOnly": true,
17938-
"category": "webhooks",
17939-
"subcategory": "user",
17940-
"supported-webhook-types": ["business"]
17941-
}
17942-
}
17943-
},
17944-
"user-deleted": {
17945-
"post": {
17946-
"summary": "This event occurs when there is activity relating to user accounts in an enterprise.",
17947-
"description": "A user account was removed from the enterprise.",
17948-
"operationId": "user/deleted",
17949-
"externalDocs": {
17950-
"url": "https://docs.github.com/enterprise-cloud@latest//webhooks/webhook-events-and-payloads#user"
17951-
},
17952-
"parameters": [
17953-
{
17954-
"name": "User-Agent",
17955-
"in": "header",
17956-
"example": "GitHub-Hookshot/123abc",
17957-
"schema": { "type": "string" }
17958-
},
17959-
{
17960-
"name": "X-Github-Hook-Id",
17961-
"in": "header",
17962-
"example": 12312312,
17963-
"schema": { "type": "string" }
17964-
},
17965-
{
17966-
"name": "X-Github-Event",
17967-
"in": "header",
17968-
"example": "issues",
17969-
"schema": { "type": "string" }
17970-
},
17971-
{
17972-
"name": "X-Github-Hook-Installation-Target-Id",
17973-
"in": "header",
17974-
"example": 123123,
17975-
"schema": { "type": "string" }
17976-
},
17977-
{
17978-
"name": "X-Github-Hook-Installation-Target-Type",
17979-
"in": "header",
17980-
"example": "repository",
17981-
"schema": { "type": "string" }
17982-
},
17983-
{
17984-
"name": "X-GitHub-Delivery",
17985-
"in": "header",
17986-
"example": "0b989ba4-242f-11e5-81e1-c7b6966d2516",
17987-
"schema": { "type": "string" }
17988-
},
17989-
{
17990-
"name": "X-Hub-Signature-256",
17991-
"in": "header",
17992-
"example": "sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e",
17993-
"schema": { "type": "string" }
17994-
}
17995-
],
17996-
"requestBody": {
17997-
"required": true,
17998-
"content": {
17999-
"application/json": {
18000-
"schema": { "$ref": "#/components/schemas/webhook-user-deleted" }
18001-
}
18002-
}
18003-
},
18004-
"responses": {
18005-
"200": {
18006-
"description": "Return a 200 status to indicate that the data was received successfully"
18007-
}
18008-
},
18009-
"x-github": {
18010-
"githubCloudOnly": true,
18011-
"category": "webhooks",
18012-
"subcategory": "user",
18013-
"supported-webhook-types": ["business"]
18014-
}
18015-
}
18016-
},
1801717871
"watch-started": {
1801817872
"post": {
1801917873
"summary": "This event occurs when there is activity relating to watching, or subscribing to, a repository. For more information about watching, see \"[Managing your subscriptions](https://docs.github.com/enterprise-cloud@latest//account-and-profile/managing-subscriptions-and-notifications-on-github/managing-subscriptions-for-activity-on-github/managing-your-subscriptions).\" For information about the APIs to manage watching, see \"[Watching](https://docs.github.com/enterprise-cloud@latest//rest/activity/watching)\" in the REST API documentation.\n\nTo subscribe to this event, a GitHub App must have at least read-level access for the \"Metadata\" repository permission.",
@@ -133578,100 +133432,6 @@
133578133432
},
133579133433
"required": ["action", "team", "organization", "sender"]
133580133434
},
133581-
"webhook-user-created": {
133582-
"type": "object",
133583-
"properties": {
133584-
"action": { "type": "string", "enum": ["created"] },
133585-
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
133586-
"installation": {
133587-
"$ref": "#/components/schemas/simple-installation"
133588-
},
133589-
"organization": {
133590-
"$ref": "#/components/schemas/organization-simple-webhooks"
133591-
},
133592-
"repository": { "$ref": "#/components/schemas/repository-webhooks" },
133593-
"sender": { "$ref": "#/components/schemas/simple-user-webhooks" },
133594-
"user": {
133595-
"title": "User",
133596-
"type": ["object", "null"],
133597-
"properties": {
133598-
"avatar_url": { "type": "string", "format": "uri" },
133599-
"deleted": { "type": "boolean" },
133600-
"email": { "type": ["string", "null"] },
133601-
"events_url": { "type": "string", "format": "uri-template" },
133602-
"followers_url": { "type": "string", "format": "uri" },
133603-
"following_url": { "type": "string", "format": "uri-template" },
133604-
"gists_url": { "type": "string", "format": "uri-template" },
133605-
"gravatar_id": { "type": "string" },
133606-
"html_url": { "type": "string", "format": "uri" },
133607-
"id": { "type": "integer" },
133608-
"login": { "type": "string" },
133609-
"name": { "type": "string" },
133610-
"node_id": { "type": "string" },
133611-
"organizations_url": { "type": "string", "format": "uri" },
133612-
"received_events_url": { "type": "string", "format": "uri" },
133613-
"repos_url": { "type": "string", "format": "uri" },
133614-
"site_admin": { "type": "boolean" },
133615-
"starred_url": { "type": "string", "format": "uri-template" },
133616-
"subscriptions_url": { "type": "string", "format": "uri" },
133617-
"type": {
133618-
"type": "string",
133619-
"enum": ["Bot", "User", "Organization"]
133620-
},
133621-
"url": { "type": "string", "format": "uri" }
133622-
},
133623-
"required": ["login", "id"]
133624-
}
133625-
},
133626-
"required": ["action"]
133627-
},
133628-
"webhook-user-deleted": {
133629-
"type": "object",
133630-
"properties": {
133631-
"action": { "type": "string", "enum": ["deleted"] },
133632-
"enterprise": { "$ref": "#/components/schemas/enterprise-webhooks" },
133633-
"installation": {
133634-
"$ref": "#/components/schemas/simple-installation"
133635-
},
133636-
"organization": {
133637-
"$ref": "#/components/schemas/organization-simple-webhooks"
133638-
},
133639-
"repository": { "$ref": "#/components/schemas/repository-webhooks" },
133640-
"sender": { "$ref": "#/components/schemas/simple-user-webhooks" },
133641-
"user": {
133642-
"title": "User",
133643-
"type": ["object", "null"],
133644-
"properties": {
133645-
"avatar_url": { "type": "string", "format": "uri" },
133646-
"deleted": { "type": "boolean" },
133647-
"email": { "type": ["string", "null"] },
133648-
"events_url": { "type": "string", "format": "uri-template" },
133649-
"followers_url": { "type": "string", "format": "uri" },
133650-
"following_url": { "type": "string", "format": "uri-template" },
133651-
"gists_url": { "type": "string", "format": "uri-template" },
133652-
"gravatar_id": { "type": "string" },
133653-
"html_url": { "type": "string", "format": "uri" },
133654-
"id": { "type": "integer" },
133655-
"login": { "type": "string" },
133656-
"name": { "type": "string" },
133657-
"node_id": { "type": "string" },
133658-
"organizations_url": { "type": "string", "format": "uri" },
133659-
"received_events_url": { "type": "string", "format": "uri" },
133660-
"repos_url": { "type": "string", "format": "uri" },
133661-
"site_admin": { "type": "boolean" },
133662-
"starred_url": { "type": "string", "format": "uri-template" },
133663-
"subscriptions_url": { "type": "string", "format": "uri" },
133664-
"type": {
133665-
"type": "string",
133666-
"enum": ["Bot", "User", "Organization"]
133667-
},
133668-
"url": { "type": "string", "format": "uri" }
133669-
},
133670-
"required": ["login", "id"]
133671-
}
133672-
},
133673-
"required": ["action"]
133674-
},
133675133435
"webhook-watch-started": {
133676133436
"title": "watch started event",
133677133437
"type": "object",

0 commit comments

Comments
 (0)