(self)
| 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 | |
| 461 | class FeatureState( |
nothing calls this directly
no test coverage detected