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.

Deployments API is no longer an encoded JSON string#446

Merged
atmos merged 1 commit intomasterfromdeployments-api-change-numero-uno
Mar 4, 2014
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletionscontent/changes/2014-03-03-deployments-api-updates.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
---
kind: change
title: New Payload format for Deployments
created_at: 2014-03-03
author_name: atmos
---

As we [iterate on the preview][january-deployment-api-post] for the new Deployment API, we're making sure that it's friendly to work with for the apps built on top of it.

## Deserialize Deployment Payloads

To make the API even easier to use, we'll now return your custom payload as a JSON object along with the rest of the Deployment resource. No need to parse it as JSON again.

## Code you need to update

You should only need to remove the JSON parsing if you're taking advantage of the custom payloads. The formats for creating Deployments remain unchanged.

As always, if you have any questions or feedback, please [get in touch][contact].

[january-deployment-api-post]: /changes/2014-01-09-preview-the-new-deployments-api/
[contact]: https://github.com/contact?form[subject]=Deployments+API
4 changes: 2 additions & 2 deletionslib/resources.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1567,7 +1567,7 @@ def text_html(response, status, head = {})
"sha" => "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d",
"url" => "https://api.github.com/repos/octocat/example/deployments/1",
"creator" => USER,
"payload" =>JSON.dump({:environment => 'production'}),
"payload" => {:environment => 'production'},
"created_at" => "2012-07-20T01:19:13Z",
"updated_at" => "2012-07-20T01:19:13Z",
"description" => "Deploy request from hubot",
Expand All@@ -1579,7 +1579,7 @@ def text_html(response, status, head = {})
"url" => "https://api.github.com/repos/octocat/example/deployments/1/statuses/42",
"state" => "success",
"creator" => USER,
"payload" =>JSON.dump({:environment => 'production'}),
"payload" => {:environment => 'production'},
"target_url" => "https://gist.github.com/628b2736d379f",
"created_at" => "2012-07-20T01:19:13Z",
"updated_at" => "2012-07-20T01:19:13Z",
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp