Add WorkflowRun.workflow_id (#1737)

Add the missing attribute WorkflowRun.workflow_id
This commit is contained in:
Yannick Jadoul
2020-11-04 14:12:17 +11:00
committed by GitHub
parent 1bb18ab52e
commit 78a29a7ce0
3 changed files with 14 additions and 0 deletions
+11
View File
@@ -92,6 +92,14 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject):
self._completeIfNotSet(self._conclusion)
return self._conclusion.value
@property
def workflow_id(self):
"""
:type: int
"""
self._completeIfNotSet(self._workflow_id)
return self._workflow_id.value
@property
def url(self):
"""
@@ -245,6 +253,7 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject):
self._event = github.GithubObject.NotSet
self._status = github.GithubObject.NotSet
self._conclusion = github.GithubObject.NotSet
self._workflow_id = github.GithubObject.NotSet
self._url = github.GithubObject.NotSet
self._html_url = github.GithubObject.NotSet
self._pull_requests = github.GithubObject.NotSet
@@ -276,6 +285,8 @@ class WorkflowRun(github.GithubObject.CompletableGithubObject):
self._status = self._makeStringAttribute(attributes["status"])
if "conclusion" in attributes: # pragma no branch
self._conclusion = self._makeStringAttribute(attributes["conclusion"])
if "workflow_id" in attributes: # pragma no branch
self._workflow_id = self._makeIntAttribute(attributes["workflow_id"])
if "url" in attributes: # pragma no branch
self._url = self._makeStringAttribute(attributes["url"])
if "html_url" in attributes: # pragma no branch