aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/issues/labels.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/services/issues/labels.py')
-rw-r--r--pygithub3/services/issues/labels.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pygithub3/services/issues/labels.py b/pygithub3/services/issues/labels.py
index a20e48e..931a6b4 100644
--- a/pygithub3/services/issues/labels.py
+++ b/pygithub3/services/issues/labels.py
@@ -142,8 +142,8 @@ class Labels(Service):
name=label)
return self._delete(request)
- def replace_all(self, number, labels, user=None, repo=None):
- """ Replace all labels of a issue
+ def replace_all(self, number, user=None, repo=None, *labels):
+ """ Replace all labels for a issue
:param int number: Issue number
:param list labels: New labels
@@ -152,6 +152,9 @@ class Labels(Service):
:returns: A :doc:`result`
.. note::
+ If labels weren't especified, it'd remove all labels from the issue
+
+ .. note::
Remember :ref:`config precedence`
"""
request = self.make_request('issues.labels.replace_all',