MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / fetch_issues

Function fetch_issues

api/integrations/github/views.py:227–241  ·  view source on GitHub ↗
(request, organisation_pk)

Source from the content-addressed store, hash-verified

225@github_auth_required # type: ignore[misc]
226@github_api_call_error_handler(error="Failed to retrieve GitHub issues.")
227def 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"])

Callers

nothing calls this directly

Calls 3

is_validMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…