Skip to content

Commit 6935b76

Browse files
committed
Allow more deployment statuses per Github docs
1 parent 1d27cfe commit 6935b76

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/github3/repos/deployment.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def create_status(self, state, target_url=None, description=None):
7777
7878
:param str state:
7979
(required), The state of the status. Can be one of
80-
``pending``, ``success``, ``error``, or ``failure``.
80+
``pending``, ``success``, ``error``, ``inactive``,
81+
``in_progress``, ``queued``, or ``failure``.
8182
:param str target_url:
8283
The target URL to associate with this status.
8384
This URL should contain output to keep the user updated while the
@@ -92,7 +93,15 @@ def create_status(self, state, target_url=None, description=None):
9293
"""
9394
json = None
9495

95-
if state in ("pending", "success", "error", "failure"):
96+
if state in (
97+
"pending",
98+
"success",
99+
"error",
100+
"inactive",
101+
"in_progress",
102+
"queued",
103+
"failure",
104+
):
96105
data = {
97106
"state": state,
98107
"target_url": target_url,

0 commit comments

Comments
 (0)