10000 Add iter_statuses and create_status to Deployment · nikicat/github3.py@031053e · GitHub
[go: up one dir, main page]

Skip to content

Commit 031053e

Browse files
committed
Add iter_statuses and create_status to Deployment
1 parent 2b80e2b commit 031053e

File tree

4 files changed

+107
-1
lines changed

4 files changed

+107
-1
lines changed

github3/repos/deployment.py

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
from json import loads
3+
24
from github3.models import GitHubCore
35
from github3.users import User
46

@@ -45,6 +47,29 @@ def __init__(self, deployment, session=None):
4547
def __repr__(self):
4648
return '<Deployment [{0} @ {1}]>'.format(self.id, self.sha)
4749

50+
def create_status(self, state, target_url='', description=''):
51+
"""Create a new deployment status for this deployment.
52+
53+
:param str state: (required), The state of the status. Can be one of
54+
``pending``, ``success``, ``error``, or ``failure``.
55+
:param str target_url: The target URL to associate with this status.
56+
This URL should contain output to keep the user updated while the
57+
task is running or serve as historical information for what
58+
happened in the deployment. Default: ''.
59+
:param str description: A short description of the status. Default: ''.
60+
:return: partial :class:`DeploymentStatus <DeploymentStatus>`
61+
"""
62+
json = None
63+
64+
if state in ('pending', 'success', 'error', 'failure'):
65+
data = {'state': state, 'target_url': target_url,
66+
'description': description}
67+
response = self._post(self.statuses_url, data=data,
68+
headers=Deployment.CUSTOM_HEADERS)
69+
json = self._json(response, 201)
70+
71+
return DeploymentStatus(json, self) if json else None
72+
4873
def iter_statuses(self, number=-1, etag=None):
4974
"""Iterate over the deployment statuses for this deployment.
5075
@@ -62,4 +87,41 @@ def iter_statuses(self, number=-1, etag=None):
6287

6388
class DeploymentStatus(GitHubCore):
6489
def __init__(self, status, session=None):
65-
pass
90+
super(DeploymentStatus, self).__init__(status, session)
91+
self._api = status.get('url')
92+
93+
#: GitHub's id for this deployment status
94+
self.id = status.get('id')
95+
96+
#: State of the deployment status
97+
self.state = status.get('state')
98+
99+
#: Creater of the deployment status
100+
self.creator = status.get('creator')
101+
if self.creator:
102+
self.creator = User(self.creator, self)
103+
104+
#: JSON payload as a string
105+
self.payload = status.get('payload', '')
106+
107+
#: Parsed JSON payload
108+
self.json_payload = loads(self.payload)
109+
110+
#: Target URL of the deployment
111+
self.target_url = status.get('target_url')
112+
113+
#: Date the deployment status was created
114+
self.created_at = status.get('created_at')
115+
if self.created_at:
116+
self.created_at = self._strptime(self.created_at)
117+
118+
#: Date the deployment status was updated
119+
self.updated_at = status.get('updated_at')
120+
if self.updated_at:
121+
self.updated_at = self._strptime(self.updated_at)
122+
123+
#: Description of the deployment
124+
self.description = status.get('description')
125+
126+
def __repr__(self):
127+
return '<DeploymentStatus [{0}]>'.format(self.id)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"http_interactions": [{"request": {"body": "", "headers": {"Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.8.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "Basic <BASIC_AUTH>"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA62YTW/jNhCG/4ohYHupY1qW/Akstnvpx20P20svBiXRFhFJFEjKqVfIf+87+rJstHYSFggCW+Y8fDmcoWZYezLxdsHan699f+oVPBfezjtKm1ZRMCvP3tQ7VFm2734w8pjzk9SVWYTsapR6KYT2drWXqaMswBgPBYWmWYTzTTCfevzELdf7SmcYl1pbmh1jR90+nsUqZ+1HFvvhJliuks32sF0sxWq78NebSAg/2QY8Pqy/JJ8b80/B10+LX/EnE1FYGavCzFp1RMPzkK/99SqcB2GccLFZr8NNGIn1Yu1vIr5crGZlcfxJf/4bQnsde1LsPVIAg+tl8FKOpmaVEdqwG1+kNs9uV994vFn7zeCDyjL1AsqNxcOJ2GBJm9hQZHH8IAWWNVM2Fdg2LOmVHCWNfb+oxqpG7BgLDxPHIBa0SN4trLODLAq915ppUaoGWEUm1rK0E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TejmxGI6Abv/Wyu1Uk4sCrzO7b4hmyE1T9mSopcoTOoZsuJuiurOuU2xVQVPWrofOi/YwGuhD2Bb1ir4YkjMuU3lfh6z9owAImzRMAAA==", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "4991", "x-github-media-type": "github.v3; param=full; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "transfer-encoding": "chunked", "x-github-request-id": "48A0D539:732B:4B2936D:530C0BD5", "content-encoding": "gzip", "vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding", "server": "GitHub.com", "cache-control": "private, max-age=60, s-maxage=60", "last-modified": "Mon, 24 Feb 2014 03:06:56 GMT", "x-ratelimit-limit": "5000", "etag": "\"327326af871222fe773d0830dce89c73\"", "access-control-allow-credentials": "true", "date": "Tue, 25 Feb 2014 03:19:50 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1393300536"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py", "status_code": 200}, "recorded_at": "2014-02-25T03:18:12"}, {"request": {"body": "", "headers": {"Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.cannonball-preview+json", "User-Agent": "github3.py/0.8.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "Basic <BASIC_AUTH>"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/deployments?per_page=100"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+1Wy27bMBD8FwLpybFIihZFAUHRS78gvfSBYEXSMgFZEkjaqWvk37uSHdcPJIaCHHoIpAOx5gx3Z5dj/diSla9JQRYxdqFIEujctHJxsSqnul0m3nZtSIKrlrB2fhW4SHa/ptNukxjb1e1maZsYkpwyMiHOkAJXExIWgKwAtBQzqVMtM8WBGqCzMpOSaSuEVjmd29II6JEdbOoWEE5+4oMBY4P2rouubTCIAe0txNaTYkvqtnJ99Dix/elc0DylEwJriOAfTqur/C481LZbJpqJPJ1lJldzxWcW82QyL61lRqWg5/KzuRvEuUm/3PCv+DqDBTvdNuFIKYwLkExmgqZCG7C5lCIXpZVcsryEGc+mXVN98ne/MdHnPB56vci1DBDwapNWwfrTJiFiEZf1efX/+nom3Lyt6/YRWc4QZ9NweVByQOKRu7VrqjeyIHKbtHFhsW1Y0lMvlAtxfFIDaouTGiIq3PMEnAVvzejE9jhM67HBjLbDhRgIV+VhPMcneIJGttZX0Lg/0A/7eDZEByQZ7uroCgcUou26v8aj4TvYNum8W4Pe9NJ4q61bo9hvpDzDI2PcdBbvyTccil56F+0DmGXvAHOog33aewMeCRH3ccrELeW3XNxTXnBeCPEdcavOQLyyB/sdcfau6DDKFZNnTvI0eTe3lUpiRb174OrgtrwUSoFg81mmgGegc6ZQC6YgLSFVWuSKCWkQ+eG2L/p9Pymv/SVemiAiPtz2w20vPp4uJ2X3PYXz8kZr/K/dNr3ntKBZwejLbnu6573dFr3wyG1//QWCvNPd3QoAAA==", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "4990", "x-github-media-type": "github.cannonball-preview; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "transfer-encoding": "chunked", "x-github-request-id": "48A0D539:732B:4B2938C:530C0BD6", "content-encoding": "gzip", "vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding", "server": "GitHub.com", "cache-control": "private, max-age=60, s-maxage=60", "x-ratelimit-limit": "5000", "etag": "\"52769a23a89e1985df79e1ec5a980fb5\"", "access-control-allow-credentials": "true", "date": "Tue, 25 Feb 2014 03:19:50 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1393300536"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/deployments?per_page=100", "status_code": 200}, "recorded_at": "2014-02-25T03:18:12"}, {"request": {"body": "{\"state\": \"success\", \"target_url\": \"\", \"description\": \"\"}", "headers": {"Content-Length": "57", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.cannonball-preview+json", "User-Agent": "github3.py/0.8.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "Basic <BASIC_AUTH>"}, "method": "POST", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/deployments/801/statuses"}, "response": {"body": {"string": "{\"url\":\"https://api.github.com/repos/sigmavirus24/github3.py/deployments/801/statuses/420\",\"id\":420,\"state\":\"success\",\"payload\":\"\\\"\\\"\",\"description\":\"\",\"target_url\":\"\",\"creator\":{\"login\":\"sigmavirus24\",\"id\":240830,\"avatar_url\":\"https://gravatar.com/avatar/c148356d89f925e692178bee1d93acf7?d=https%3A%2F%2Fidenticons.github.com%2F4a71764034cdae877484be72718ba526.png&r=x\",\"gravatar_id\":\"c148356d89f925e692178bee1d93acf7\",\"url\":\"https://api.github.com/users/sigmavirus24\",\"html_url\":\"https://github.com/sigmavirus24\",\"followers_url\":\"https://api.github.com/users/sigmavirus24/followers\",\"following_url\":\"https://api.github.com/users/sigmavirus24/following{/other_user}\",\"gists_url\":\"https://api.github.com/users/sigmavirus24/gists{/gist_id}\",\"starred_url\":\"https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}\",\"subscriptions_url\":\"https://api.github.com/users/sigmavirus24/subscriptions\",\"organizations_url\":\"https://api.github.com/users/sigmavirus24/orgs\",\"repos_url\":\"https://api.github.com/users/sigmavirus24/repos\",\"events_url\":\"https://api.github.com/users/sigmavirus24/events{/privacy}\",\"received_events_url\":\"https://api.github.com/users/sigmavirus24/received_events\",\"type\":\"User\",\"site_admin\":false},\"created_at\":\"2014-02-25T03:19:50Z\",\"updated_at\":\"2014-02-25T03:19:50Z\"}", "encoding": "utf-8"}, "headers": {"status": "201 Created", "x-ratelimit-remaining": "4989", "x-github-media-type": "github.cannonball-preview; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "x-github-request-id": "48A0D539:732B:4B293BA:530C0BD6", "cache-control": "private, max-age=60, s-maxage=60", "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "content-length": "1292", "server": "GitHub.com", "x-ratelimit-limit": "5000", "location": "https://api.github.com/repos/sigmavirus24/github3.py/deployments/801/statuses/420", "access-control-allow-credentials": "true", "date": "Tue, 25 Feb 2014 03:19:50 GMT", "etag": "\"86218b29258eb09da185aa12c281ebe3\"", "content-type": "application/json; charset=utf-8", "access-control-allow-origin": "*", "x-ratelimit-reset": "1393300536"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/deployments/801/statuses", "status_code": 201}, "recorded_at": "2014-02-25T03:18:13"}], "recorded_with": "betamax"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"http_interactions": [{"request": {"body": "", "headers": {"Accept-Charset": "utf-8", "Content-Type": "application/json", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.8.0"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA62YTY/iOBCG/wqKNHtZGhMSCEQazcxlP25zmL3sBTmJIVYncWQ7sHTU/31fOyEEtAvd7ZFaLQiux6/LVXZVWo9nXhxE/jzy/alX0ZJ5sbfnOm+SYFafvKm3a4pi2/+g+L6kBy4btQjJ1ShxrJj04tYrxJ5XYIyHgmKmWYTzdTCfevRANZXbRhYYl2tdq5iQvewez1JRku4jSf1wHSxX2Xqz2yyWbLVZ+NE6YczPN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0F8Mm83/ru/H7UU5q0BDJXKL4ZfL2bx/7x66c3SArF0E/Rvn/Nwey09NoXUXJSsRpnQv8QZVhnUpxk8naH9ykSqZuiBiVkZf8HQ5XodXRUEqWgq7Ie/wuunI9WoXXH1jh+eC4mh6TNTU7Xt0tSLtWxMV4knl2Ng9PDIn/nQ8XVNW08PNzgluZSifxVVIUnR79es6tmDjKBrHJUXG5vRCOjGb2fZ/SoytqNNobdd8QzZGar+QtTQXTF9RNt3BhvauOI4Lzt8/RfBb8wTmBMAAA==", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "54", "x-github-media-type": "github.v3; param=full; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "transfer-encoding": "chunked", "x-github-request-id": "48A0D539:732C:5B9C24D:530C0BD6", "content-encoding": "gzip", "vary": "Accept, Accept-Encoding", "server": "GitHub.com", "cache-control": "public, max-age=60, s-maxage=60", "last-modified": "Mon, 24 Feb 2014 03:06:56 GMT", "x-ratelimit-limit": "60", "etag": "\"b2e56f580884aae0b981b46447fc93a4\"", "access-control-allow-credentials": "true", "date": "Tue, 25 Feb 2014 03:19:50 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1393299561"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py", "status_code": 200}, "recorded_at": "2014-02-25T03:18:13"}, {"request": {"body": "", "headers": {"Accept-Charset": "utf-8", "Content-Type": "application/json", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.cannonball-preview+json", "User-Agent": "github3.py/0.8.0"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/deployments?per_page=100"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+1Wy27bMBD8FwLpybFIihZFAUHRS78gvfSBYEXSMgFZEkjaqWvk37uSHdcPJIaCHHoIpAOx5gx3Z5dj/diSla9JQRYxdqFIEujctHJxsSqnul0m3nZtSIKrlrB2fhW4SHa/ptNukxjb1e1maZsYkpwyMiHOkAJXExIWgKwAtBQzqVMtM8WBGqCzMpOSaSuEVjmd29II6JEdbOoWEE5+4oMBY4P2rouubTCIAe0txNaTYkvqtnJ99Dix/elc0DylEwJriOAfTqur/C481LZbJpqJPJ1lJldzxWcW82QyL61lRqWg5/KzuRvEuUm/3PCv+DqDBTvdNuFIKYwLkExmgqZCG7C5lCIXpZVcsryEGc+mXVN98ne/MdHnPB56vci1DBDwapNWwfrTJiFiEZf1efX/+nom3Lyt6/YRWc4QZ9NweVByQOKRu7VrqjeyIHKbtHFhsW1Y0lMvlAtxfFIDaouTGiIq3PMEnAVvzejE9jhM67HBjLbDhRgIV+VhPMcneIJGttZX0Lg/0A/7eDZEByQZ7uroCgcUou26v8aj4TvYNum8W4Pe9NJ4q61bo9hvpDzDI2PcdBbvyTccil56F+0DmGXvAHOog33aewMeCRH3ccrELeW3XNxTXnBeCPEdcavOQLyyB/sdcfau6DDKFZNnTvI0eTe3lUpiRb174OrgtrwUSoFg81mmgGegc6ZQC6YgLSFVWuSKCWkQ+eG2L/p9Pymv/SVemiAiPtz2w20vPp4uJ2X3PYXz8kZr/K/dNr3ntKBZwejLbnu6573dFr3wyG1//QWCvNPd3QoAAA==", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "53", "x-github-media-type": "github.cannonball-preview; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "transfer-encoding": "chunked", "x-github-request-id": "48A0D539:732C:5B9C27B:530C0BD6", "content-encoding": "gzip", "vary": "Accept, Accept-Encoding", "server": "GitHub.com", "cache-control": "public, max-age=60, s-maxage=60", "x-ratelimit-limit": "60", "etag": "\"f9e24b871547bd00db8eb0497504bc84\"", "access-control-allow-credentials": "true", "date": "Tue, 25 Feb 2014 03:19:50 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1393299561"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/deployments?per_page=100", "status_code": 200}, "recorded_at": "2014-02-25T03:18:13"}, {"request": {"body": "", "headers": {"Accept-Charset": "utf-8", "Content-Type": "application/json", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.cannonball-preview+json", "User-Agent": "github3.py/0.8.0"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/deployments/801/statuses?per_page=5"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+1W247aMBD9F0vbJxYnTkIu0qrqS7+gfelFyNhDsBRiy3bY0oh/7zhh2d1UpcqqfUPwYMY+Z86Mx0d87UlnG1KRnffGVZRyo5a18rtusxR6Ty0Y7ahT9Z4flO0cS+m4myzNkUowjT7uofWOFlFMnee+c+BoyiKyIEqSClcLEuKASVwnBDiHW4YfG81xn3zDDwYkOGGV8Uq3GMSA57YGvx7V4W9hgXttSdWTRtcqnHop65yOpVGRYEZ+4EhwRj/VVtsxPFQ2LqmI0yLJVrIotyXLYFWyOC82ALEsEy62+Xv5MMDvkg937CN+lcRyldCte9EnjKc8j/NVGiWpkByKPE+LdAM5y+NiwzO2Wpq2fmcffqDQJx3r0CDyNwUIuHpF2HD7+ooQsfP7Zlr9861OGrfVTaMfkWWCmMzC74noBYkpx7Vq6zeyILKn2u8Arw1LOoVGKefnixpQPc6p89jhwIPzZy3I2cLOOJT12KKifngOA2G3uYzrfIGv0Mimbc1b9ZOH4Z/PhujwooaXOrvCAYVoOIRHPBs+wnpqrDpwcQytsSBAHbDZb6Sc4JHRH00wj884FKH1ysOay31wgC1vHJzO3oApucdzLIrT+4jds+xTlFRxWWXRF8R1RqIJXTtzWvwnM4xLzD+YYVzezPBmhs9G/EdLvZnhzQzxv9Y/NUNWZXnFyqtmeDlz+v4LSIuPDhsKAAA=", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "52", "x-github-media-type": "github.cannonball-preview; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "transfer-encoding": "chunked", "x-github-request-id": "48A0D539:732C:5B9C2A9:530C0BD6", "content-encoding": "gzip", "vary": "Accept, Accept-Encoding", "server": "GitHub.com", "cache-control": "public, max-age=60, s-maxage=60", "x-ratelimit-limit": "60", "etag": "\"c02497cccafbaf119c0817fea2361ace\"", "access-control-allow-credentials": "true", "date": "Tue, 25 Feb 2014 03:19:50 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1393299561"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/deployments/801/statuses?per_page=5", "status_code": 200}, "recorded_at": "2014-02-25T03:18:13"}], "recorded_with": "betamax"}

0 commit comments

Comments
 (0)
0