(self, request, *args, **kwargs)
| 186 | ) |
| 187 | |
| 188 | def update(self, request, *args, **kwargs) -> Response | None: # type: ignore[no-untyped-def,override] |
| 189 | response: Response = super().update(request, *args, **kwargs) |
| 190 | github_configuration: GithubConfiguration = GithubConfiguration.objects.get( |
| 191 | id=self.kwargs["github_pk"] |
| 192 | ) |
| 193 | if request.data.get("tagging_enabled", False): |
| 194 | create_flagsmith_flag_label( |
| 195 | installation_id=github_configuration.installation_id, |
| 196 | owner=request.data.get("repository_owner"), |
| 197 | repo=request.data.get("repository_name"), |
| 198 | ) |
| 199 | return response |
| 200 | |
| 201 | |
| 202 | @api_view(["GET"]) |
no test coverage detected