We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d71800b commit 76ca234Copy full SHA for 76ca234
gitlab/v4/objects.py
@@ -2023,10 +2023,10 @@ def unstar(self, **kwargs):
2023
GitlabDeleteError: If the action cannot be done
2024
GitlabConnectionError: If the server cannot be reached.
2025
"""
2026
- url = "/projects/%s/star" % self.id
2027
- r = self.gitlab._raw_delete(url, **kwargs)
2028
- raise_error_from_response(r, GitlabDeleteError, [200, 304])
2029
- return Project(self.gitlab, r.json()) if r.status_code == 200 else self
+ url = "/projects/%s/unstar" % self.id
+ r = self.gitlab._raw_post(url, **kwargs)
+ raise_error_from_response(r, GitlabDeleteError, [201, 304])
+ return Project(self.gitlab, r.json()) if r.status_code == 201 else self
2030
2031
def archive(self, **kwargs):
2032
"""Archive a project.
0 commit comments