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

Commitf7748b6

Browse files
committed
Finish updating github3.repos.deployment
1 parent2b4594c commitf7748b6

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

‎github3/repos/deployment.py‎

Lines changed: 4 additions & 20 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp