(request, organisation_pk)
| 272 | @github_auth_required # type: ignore[misc] |
| 273 | @github_api_call_error_handler(error="Failed to retrieve GitHub repo contributors.") |
| 274 | def fetch_repo_contributors(request, organisation_pk) -> Response: # type: ignore[no-untyped-def] |
| 275 | query_serializer = RepoQueryParamsSerializer(data=request.query_params) |
| 276 | if not query_serializer.is_valid(): |
| 277 | return Response({"error": query_serializer.errors}, status=400) |
| 278 | |
| 279 | response = fetch_github_repo_contributors( |
| 280 | organisation_id=organisation_pk, params=query_serializer.validated_data |
| 281 | ) |
| 282 | |
| 283 | return Response( |
| 284 | data=response, |
| 285 | content_type="application/json", |
| 286 | status=status.HTTP_200_OK, |
| 287 | ) |
| 288 | |
| 289 | |
| 290 | def _get_github_api_url(repository_url: str) -> str: |
nothing calls this directly
no test coverage detected
searching dependent graphs…