(
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,
)
| 242 | |
| 243 | |
| 244 | def 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 | ) |
no test coverage detected
searching dependent graphs…