Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow more deployment statuses per Github docs #1074

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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