(request, organisation_pk)
| 225 | @github_auth_required # type: ignore[misc] |
| 226 | @github_api_call_error_handler(error="Failed to retrieve GitHub issues.") |
| 227 | def fetch_issues(request, organisation_pk) -> Response | None: # type: ignore[no-untyped-def] |
| 228 | query_serializer = IssueQueryParamsSerializer(data=request.query_params) |
| 229 | if not query_serializer.is_valid(): |
| 230 | return Response({"error": query_serializer.errors}, status=400) |
| 231 | |
| 232 | data = fetch_search_github_resource( |
| 233 | resource_type=ResourceType.ISSUES, |
| 234 | organisation_id=organisation_pk, |
| 235 | params=query_serializer.validated_data, |
| 236 | ) |
| 237 | return Response( |
| 238 | data=data, |
| 239 | content_type="application/json", |
| 240 | status=status.HTTP_200_OK, |
| 241 | ) |
| 242 | |
| 243 | |
| 244 | @api_view(["GET"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…