@@ -25,70 +25,68 @@ The Deployment Status payloads now embed the associated Deployment object. With
2525
2626### Example Deployment JSON
2727
28- <pre ><code class =" language-javascript " >
29- {
30- "url": "https://api.github.com/repos/my-org/my-repo/deployments/392",
31- "id": 392,
32- "sha": "837db83be4137ca555d9a5598d0a1ea2987ecfee",
33- "ref": "master",
34- "environment": "staging",
35- "payload": {
36- "fe": [
37- "fe1",
38- "fe2",
39- "fe3"
40- ]
41- },
42- "description": "ship it!",
43- "creator": {
44- "login": "my-org",
45- "id": 521,
46- "avatar_url": "https://avatars.githubusercontent.com/u/2988?",
47- "type": "User"
48- },
49- "created_at": "2014-05-09T19:56:47Z",
50- "updated_at": "2014-05-09T19:56:47Z",
51- "statuses_url": "https://api.github.com/repos/my-org/my-repo/deployments/392/statuses"
52- }
53- </code ></pre >
28+ #!javascript
29+ {
30+ "url": "https://api.github.com/repos/my-org/my-repo/deployments/392",
31+ "id": 392,
32+ "sha": "837db83be4137ca555d9a5598d0a1ea2987ecfee",
33+ "ref": "master",
34+ "environment": "staging",
35+ "payload": {
36+ "fe": [
37+ "fe1",
38+ "fe2",
39+ "fe3"
40+ ]
41+ },
42+ "description": "ship it!",
43+ "creator": {
44+ "login": "my-org",
45+ "id": 521,
46+ "avatar_url": "https://avatars.githubusercontent.com/u/2988?",
47+ "type": "User"
48+ },
49+ "created_at": "2014-05-09T19:56:47Z",
50+ "updated_at": "2014-05-09T19:56:47Z",
51+ "statuses_url": "https://api.github.com/repos/my-org/my-repo/deployments/392/statuses"
52+ }
5453
5554### Example Deployment Status JSON
5655
57- <pre ><code class =" language-javascript " >
58- {
59- "url": "https://api.github.com/repos/my-org/my-repo/deployments/396/statuses/1",
60- "id": 1,
61- "state": "success",
62- "deployment": {
63- "url": "https://api.github.com/repos/my-org/my-repo/deployments/396",
64- "id": 392,
65- "sha": "837db83be4137ca555d9a5598d0a1ea2987ecfee",
66- "ref": "master",
67- "payload": {
68- "fe": [
69- "fe1",
70- "fe2",
71- "fe3"
72- ]
73- },
74- "environment": "production",
75- "description": "Deploying to production",
76- "creator": {
77- "login": "alysson-goldner",
78- "id": 540,
79- "type": "User"
80- },
81- "created_at": "2014-05-09T19:59:36Z",
82- "updated_at": "2014-05-09T19:59:36Z",
83- "statuses_url": "https://api.github.com/repos/my-org/my-repo/deployments/396/statuses"
84- },
85- "description": "Deployment succeeded",
86- "target_url": "https://deploy.myorg.com/apps/my-repo/logs/420",
87- "created_at": "2014-05-09T19:59:39Z",
88- "updated_at": "2014-05-09T19:59:39Z",
89- "deployment_url": "https://api.github.com/repos/my-org/my-repo/deployments/396"
90- }
91- </code ></pre >
56+ #!javascript
57+ {
58+ "url": "https://api.github.com/repos/my-org/my-repo/deployments/396/statuses/1",
59+ "id": 1,
60+ "state": "success",
61+ "deployment": {
62+ "url": "https://api.github.com/repos/my-org/my-repo/deployments/396",
63+ "id": 392,
64+ "sha": "837db83be4137ca555d9a5598d0a1ea2987ecfee",
65+ "ref": "master",
66+ "payload": {
67+ "fe": [
68+ "fe1",
69+ "fe2",
70+ "fe3"
71+ ]
72+ },
73+ "environment": "production",
74+ "description": "Deploying to production",
75+ "creator": {
76+ "login": "alysson-goldner",
77+ "id": 540,
78+ "type": "User"
79+ },
80+ "created_at": "2014-05-09T19:59:36Z",
81+ "updated_at": "2014-05-09T19:59:36Z",
82+ "statuses_url": "https://api.github.com/repos/my-org/my-repo/deployments/396/statuses"
83+ },
84+ "description": "Deployment succeeded",
85+ "target_url": "https://deploy.myorg.com/apps/my-repo/logs/420",
86+ "created_at": "2014-05-09T19:59:39Z",
87+ "updated_at": "2014-05-09T19:59:39Z",
88+ "deployment_url": "https://api.github.com/repos/my-org/my-repo/deployments/396"
89+ }
9290
9391If you have any questions or feedback, please [ get in touch] [ contact ] .
9492
0 commit comments