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

Function fetch_repo_contributors

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

Source from the content-addressed store, hash-verified

272@github_auth_required # type: ignore[misc]
273@github_api_call_error_handler(error="Failed to retrieve GitHub repo contributors.")
274def 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
290def _get_github_api_url(repository_url: str) -> str:

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…