You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: content/program.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ layout: developers
6
6
<divclass="feature dev-program">
7
7
<divclass="wrapper">
8
8
<h1>It takes a community to design, build, and ship great software.</h1>
9
-
<p class="intro">Building an application that integrates with GitHub? Register for our Developer Program, the possibilities are endless and the kudos is all yours.</p>
9
+
<p class="intro">Building an application that integrates with GitHub? Register for our Developer Program! The possibilities are endless, and you enjoy the kudos.</p>
Copy file name to clipboardExpand all lines: content/v3/repos/statuses.md
+68-21Lines changed: 68 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,59 @@ Note that the `repo:status` [OAuth scope](/v3/oauth/#scopes) grants targeted
25
25
access to Statuses **without** also granting access to repository code, while the
26
26
`repo` scope grants permission to code as well as statuses.
27
27
28
+
## Create a Status
29
+
30
+
Users with push access can create commit statuses for a given ref:
31
+
32
+
POST /repos/:owner/:repo/statuses/:sha
33
+
34
+
### Parameters
35
+
36
+
Name | Type | Description
37
+
-----|------|--------------
38
+
`state`|`string` | **Required**. The state of the status. Can be one of `pending`, `success`, `error`, or `failure`.
39
+
`target_url`|`string` | The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the 'source' of the Status.<br/>For example, if your Continuous Integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:<br/>`http://ci.example.com/user/repo/build/sha`.
40
+
`description`|`string` | A short description of the status.
41
+
`context`|`string` | A string label to differentiate this status from the status of other systems.
this endpoint is also available at <code>/repos/:owner/:repo/:ref/status</code>.
72
+
</p>
73
+
</div>
74
+
34
75
Statuses are returned in reverse chronological order. The first status in the
35
76
list will be the latest one.
36
77
37
78
### Parameters
38
79
39
-
Name | Type | Description
80
+
Name | Type | Description
40
81
-----|------|--------------
41
82
`ref`|`string` | **Required**. Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.
42
83
@@ -46,31 +87,37 @@ Name | Type | Description
46
87
<%= headers 200 %>
47
88
<%= json(:status) { |h| [h] } %>
48
89
49
-
## Create a Status
90
+
## Get the combined Status for a specific Ref
50
91
51
-
Users with push access can create commit statuses for a given ref:
92
+
<divclass="alert">
93
+
<p>
94
+
The Combined status endpoint is currently available for developers to preview.
95
+
During the preview period, the API may change without advance notice.
96
+
Please see the <a href="/changes/2014-03-27-combined-status-api/">blog post</a> for full details.
97
+
</p>
98
+
<p>
99
+
To access this endpoint during the preview period, you must provide a custom
100
+
<a href="/v3/media/">media type</a> in the <code>Accept</code> header:
101
+
<pre><%= combined_media_type %></pre>
102
+
</p>
103
+
</div>
52
104
53
-
POST /repos/:owner/:repo/statuses/:sha
105
+
Users with pull access can access a combined view of commit statuses for a given ref.
54
106
55
-
### Parameters
107
+
GET /repos/:owner/:repo/:ref/statuses
56
108
57
-
Name | Type | Description
58
-
-----|------|--------------
59
-
`state`|`string` | **Required**. The state of the status. Can be one of `pending`, `success`, `error`, or `failure`.
60
-
`target_url`|`string` | The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the 'source' of the Status.<br/>For example, if your Continuous Integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA:<br/>`http://ci.example.com/user/repo/build/sha`.
61
-
`description`|`string` | A short description of the status
109
+
The most recent status for each context is returned (up to 25), as well as a combined
110
+
`state`. The `state` is `pending` to start, `failure` if any status reports as
111
+
`error` or `failure`, `pending` if any context's latest status is `pending`, and
112
+
`success` if the latest statusfor all contexts is `success`. (`null` is
0 commit comments