diff --git a/AUTHORS.rst b/AUTHORS.rst index 46733406..aa8a20b9 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -210,3 +210,5 @@ Contributors - Thomas Lam (@lamcw) - David Glick (@davisagli) + +- Greg Gilbert (@greggilbert) diff --git a/docs/source/release-notes/3.2.0.rst b/docs/source/release-notes/3.2.0.rst new file mode 100644 index 00000000..9e88a51d --- /dev/null +++ b/docs/source/release-notes/3.2.0.rst @@ -0,0 +1,16 @@ +3.2.0: 2022-xx-xx +----------------- + +Dependency Change +````````````````` + + +Features Added +`````````````` + +- Added more allowed statuses to Deployments for + :meth:`github3.repos.deployment.Deployment.create_status()` + + +Bug Fixes +````````` diff --git a/docs/source/release-notes/index.rst b/docs/source/release-notes/index.rst index 4c84eb56..fb031f69 100644 --- a/docs/source/release-notes/index.rst +++ b/docs/source/release-notes/index.rst @@ -9,6 +9,7 @@ here with the newest releases first. ================== .. toctree:: + 3.2.0 3.1.0 3.0.0 diff --git a/src/github3/repos/deployment.py b/src/github3/repos/deployment.py index 798da5c2..a8ec5254 100644 --- a/src/github3/repos/deployment.py +++ b/src/github3/repos/deployment.py @@ -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 @@ -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,