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

Method create_github_comment

api/features/models.py:443–458  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

441
442 @hook(AFTER_DELETE) # type: ignore[misc]
443 def create_github_comment(self) -> None:
444 from integrations.github.github import call_github_task
445
446 if (
447 self.feature.external_resources.exists()
448 and self.feature.project.github_project.exists()
449 and self.feature.project.organisation.github_config.exists()
450 ):
451 call_github_task(
452 self.feature.project.organisation_id, # type: ignore[arg-type]
453 GitHubEventType.SEGMENT_OVERRIDE_DELETED.value,
454 self.feature,
455 self.segment.name,
456 None,
457 None,
458 )
459
460
461class FeatureState(

Callers

nothing calls this directly

Calls 2

call_github_taskFunction · 0.90
existsMethod · 0.80

Tested by

no test coverage detected