Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitcc36004

Browse files
committed
Merge pull request#75 from github/deployment-events
Add information on deployment events
2 parentsba4f5ed +1691875 commitcc36004

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

‎content/v3/activity/events/types.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,43 @@ Key | Type | Description
6565
`ref_type`|`string` | The object that was deleted. Can be "branch" or "tag".
6666
`ref`|`string` | The full git ref.
6767

68+
##DeploymentEvent
69+
70+
Represents a[deployment](/v3/repos/deployments/#list-deployments).
71+
72+
###Hook name
73+
74+
`deployment`
75+
76+
###Payload
77+
78+
Key | Type | Description
79+
----|------|-------------
80+
`sha` |`string` | The commit SHA for which this deployment was created.
81+
`name` |`string` | Name of repository for this deployment, formatted as`:owner/:repo`.
82+
`payload` |`string` | The optional extra information for this deployment.
83+
`description`|`string` | The optional human-readable description added to the deployment.
84+
85+
86+
##DeploymentStatusEvent
87+
88+
Represents a[deployment status](/v3/repos/deployments/#list-deployment-statuses).
89+
90+
###Hook name
91+
92+
`deployment_status`
93+
94+
###Payload
95+
96+
Key | Type | Description
97+
----|------|-------------
98+
`sha` |`string` | The commit SHA for the associated deployment.
99+
`name` |`string` | Name of repository for the associated deployment, formatted as`:owner/:repo`.
100+
`state` |`string` | The new state. Can be`pending`,`success`,`failure`, or`error`.
101+
`payload` |`string` | The optional extra information for the associated deployment.
102+
`target_url` |`string` | The optional link added to the status.
103+
`description`|`string` | The optional human-readable description added to the status.
104+
68105

69106
##DownloadEvent
70107

‎content/v3/repos/hooks.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ Name | Description
7272
`public` | Any time a Repository changes from private to public.
7373
`team_add` | Any time a team is added or modified on a Repository.
7474
`status` | Any time a Repository has a status update from the API
75+
`deployment` | Any time a Repository has a new deployment created from the API.
76+
`deployment_status` | Any time a deployment for the Repository has a status update from the API.
77+
7578

7679
###Payloads
7780

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp