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

Function call_github_task

api/integrations/github/github.py:244–267  ·  view source on GitHub ↗
(
    organisation_id: str,
    type: str,
    feature: Feature,
    segment_name: str | None,
    url: str | None,
    feature_states: typing.Union[list[typing.Any], list[typing.Any]] | None,
)

Source from the content-addressed store, hash-verified

242
243
244def call_github_task(
245 organisation_id: str,
246 type: str,
247 feature: Feature,
248 segment_name: str | None,
249 url: str | None,
250 feature_states: typing.Union[list[typing.Any], list[typing.Any]] | None,
251) -> None:
252 github_configuration = GithubConfiguration.objects.get(
253 organisation_id=organisation_id
254 )
255
256 feature_data: GithubData = generate_data(
257 github_configuration=github_configuration,
258 feature=feature,
259 type=type,
260 url=url,
261 segment_name=segment_name,
262 feature_states=feature_states,
263 )
264
265 call_github_app_webhook_for_feature_state.delay(
266 args=(asdict(feature_data),),
267 )

Callers 6

saveMethod · 0.90
create_github_commentMethod · 0.90
create_github_commentMethod · 0.90
notify_github_on_linkMethod · 0.90
saveMethod · 0.90

Calls 2

generate_dataFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…