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

Method create_github_comment

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

Source from the content-addressed store, hash-verified

142
143 @hook(AFTER_SAVE) # type: ignore[misc]
144 def create_github_comment(self) -> None:
145 from integrations.github.github import call_github_task
146
147 if (
148 self.external_resources.exists()
149 and self.project.github_project.exists()
150 and self.project.organisation.github_config.exists()
151 and self.deleted_at
152 ):
153 call_github_task(
154 organisation_id=self.project.organisation_id, # type: ignore[arg-type]
155 type=GitHubEventType.FLAG_DELETED.value,
156 feature=self,
157 segment_name=None,
158 url=None,
159 feature_states=None,
160 )
161
162 @hook(AFTER_SAVE) # type: ignore[misc]
163 def create_gitlab_comment(self) -> None:

Callers

nothing calls this directly

Calls 2

call_github_taskFunction · 0.90
existsMethod · 0.80

Tested by

no test coverage detected