Skip to content

Commit f7748b6

Browse files
committed
Finish updating github3.repos.deployment
1 parent 2b4594c commit f7748b6

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

github3/repos/deployment.py

+4-20
Original file line numberDiff line numberDiff line change
@@ -166,30 +166,14 @@ class DeploymentStatus(GitHubCore):
166166

167167
def _update_attributes(self, status):
168168
self._api = status['url']
169-
170-
#: GitHub's id for this deployment status
169+
self.created_at = self._strptime(status['created_at'])
170+
self.creator = users.ShortUser(status['creator'], self)
171+
self.deployment_url = status['deployment_url']
172+
self.description = status['description']
171173
self.id = status['id']
172-
173-
#: State of the deployment status
174174
self.state = status['state']
175-
176-
#: Creater of the deployment status
177-
self.creator = users.ShortUser(status['creator'], self)
178-
179-
#: Target URL of the deployment
180175
self.target_url = status['target_url']
181-
182-
#: Date the deployment status was created
183-
self.created_at = self._strptime(status['created_at'])
184-
185-
#: Date the deployment status was updated
186176
self.updated_at = self._strptime(status['updated_at'])
187177

188-
#: Description of the deployment
189-
self.description = status['description']
190-
191-
#: URL for the deployment this status is associated with
192-
self.deployment_url = status['deployment_url']
193-
194178
def _repr(self):
195179
return '<DeploymentStatus [{0}]>'.format(self.id)

0 commit comments

Comments
 (0)