Skip to content

Commit

Permalink
feat(GHES): new event: package
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 28, 2022
1 parent 485e614 commit 4571273
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
24 changes: 24 additions & 0 deletions payload-examples/ghes-31/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,30 @@
],
"examples": []
},
{
"name": "package",
"description": "Activity related to GitHub Packages. The type of activity is specified in the `action` property of the payload object. For more information, see \"[Managing packages with GitHub Packages](https://docs.github.com/en/enterprise-server@3.1/github/managing-packages-with-github-packages)\" to learn more about GitHub Packages.",
"properties": {
"package": {
"type": "object",
"description": "Information about the package."
},
"repository": {
"type": "object",
"description": "The [`repository`](https://docs.github.com/en/enterprise-server@3.1/rest/reference/repos#get-a-repository) where the event occurred."
},
"organization": {
"type": "object",
"description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/enterprise-server@3.1/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization."
},
"sender": {
"type": "object",
"description": "The user that triggered the event."
}
},
"actions": ["published", "updated"],
"examples": []
},
{
"name": "page_build",
"description": "Represents an attempted build of a GitHub Pages site, whether successful or not. A push to a GitHub Pages enabled branch (`gh-pages` for project pages, the default branch for user and organization pages) triggers this event.",
Expand Down
24 changes: 24 additions & 0 deletions payload-examples/ghes-32/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,30 @@
],
"examples": []
},
{
"name": "package",
"description": "Activity related to GitHub Packages. The type of activity is specified in the `action` property of the payload object. For more information, see \"[Managing packages with GitHub Packages](https://docs.github.com/en/enterprise-server@3.2/github/managing-packages-with-github-packages)\" to learn more about GitHub Packages.",
"properties": {
"package": {
"type": "object",
"description": "Information about the package."
},
"repository": {
"type": "object",
"description": "The [`repository`](https://docs.github.com/en/enterprise-server@3.2/rest/reference/repos#get-a-repository) where the event occurred."
},
"organization": {
"type": "object",
"description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/enterprise-server@3.2/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization."
},
"sender": {
"type": "object",
"description": "The user that triggered the event."
}
},
"actions": ["published", "updated"],
"examples": []
},
{
"name": "page_build",
"description": "Represents an attempted build of a GitHub Pages site, whether successful or not. A push to a GitHub Pages enabled branch (`gh-pages` for project pages, the default branch for user and organization pages) triggers this event.",
Expand Down
24 changes: 24 additions & 0 deletions payload-examples/ghes-33/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,30 @@
],
"examples": []
},
{
"name": "package",
"description": "Activity related to GitHub Packages. The type of activity is specified in the `action` property of the payload object. For more information, see \"[Managing packages with GitHub Packages](https://docs.github.com/en/enterprise-server@3.3/github/managing-packages-with-github-packages)\" to learn more about GitHub Packages.",
"properties": {
"package": {
"type": "object",
"description": "Information about the package."
},
"repository": {
"type": "object",
"description": "The [`repository`](https://docs.github.com/en/enterprise-server@3.3/rest/reference/repos#get-a-repository) where the event occurred."
},
"organization": {
"type": "object",
"description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/enterprise-server@3.3/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization."
},
"sender": {
"type": "object",
"description": "The user that triggered the event."
}
},
"actions": ["published", "updated"],
"examples": []
},
{
"name": "page_build",
"description": "Represents an attempted build of a GitHub Pages site, whether successful or not. A push to a GitHub Pages enabled branch (`gh-pages` for project pages, the default branch for user and organization pages) triggers this event.",
Expand Down

0 comments on commit 4571273

Please sign in to comment.