Skip to content

Commit

Permalink
Allow more deployment statuses per Github docs
Browse files Browse the repository at this point in the history
  • Loading branch information
greggilbert committed Feb 15, 2022
1 parent 1d27cfe commit 6935b76
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/github3/repos/deployment.py
Expand Up @@ -77,7 +77,8 @@ def create_status(self, state, target_url=None, description=None):
:param str state:
(required), The state of the status. Can be one of
``pending``, ``success``, ``error``, or ``failure``.
``pending``, ``success``, ``error``, ``inactive``,
``in_progress``, ``queued``, or ``failure``.
:param str target_url:
The target URL to associate with this status.
This URL should contain output to keep the user updated while the
Expand All @@ -92,7 +93,15 @@ def create_status(self, state, target_url=None, description=None):
"""
json = None

if state in ("pending", "success", "error", "failure"):
if state in (
"pending",
"success",
"error",
"inactive",
"in_progress",
"queued",
"failure",
):
data = {
"state": state,
"target_url": target_url,
Expand Down

0 comments on commit 6935b76

Please sign in to comment.