def post_install(self, integration, organization): repo_ids = Repository.objects.filter( organization_id=organization.id, provider='github', ).values_list('id', flat=True) for repo_id in repo_ids: migrate_repo.apply_async(kwargs={ 'repo_id': repo_id, 'integration_id': integration.id, 'organization_id': organization.id, })
def post_install(self, integration, organization): repo_ids = Repository.objects.filter( organization_id=organization.id, provider='visualstudio', ).values_list('id', flat=True) for repo_id in repo_ids: migrate_repo.apply_async(kwargs={ 'repo_id': repo_id, 'integration_id': integration.id, 'organization_id': organization.id, })
def post_install(self, integration, organization): repo_ids = Repository.objects.filter( organization_id=organization.id, provider__in=['visualstudio', 'integrations:vsts'], integration_id__isnull=True, ).values_list('id', flat=True) for repo_id in repo_ids: migrate_repo.apply_async(kwargs={ 'repo_id': repo_id, 'integration_id': integration.id, 'organization_id': organization.id, })
def post_install(self, integration, organization): repo_ids = Repository.objects.filter( organization_id=organization.id, provider__in=['github', 'integrations:github'], integration_id__isnull=True, ).values_list('id', flat=True) for repo_id in repo_ids: migrate_repo.apply_async(kwargs={ 'repo_id': repo_id, 'integration_id': integration.id, 'organization_id': organization.id, })
def post_install(self, integration, organization): repo_ids = Repository.objects.filter( organization_id=organization.id, provider__in=["visualstudio", "integrations:vsts"], integration_id__isnull=True, ).values_list("id", flat=True) for repo_id in repo_ids: migrate_repo.apply_async( kwargs={ "repo_id": repo_id, "integration_id": integration.id, "organization_id": organization.id, })
def post_install(self, integration, organization, extra=None): repo_ids = Repository.objects.filter( organization_id=organization.id, provider__in=["bitbucket_server", "integrations:bitbucket_server"], integration_id__isnull=True, ).values_list("id", flat=True) for repo_id in repo_ids: migrate_repo.apply_async( kwargs={ "repo_id": repo_id, "integration_id": integration.id, "organization_id": organization.id, })
def post_install( self, integration: IntegrationModel, organization: Organization, extra: Optional[Mapping[str, Any]] = None, ) -> None: repo_ids = Repository.objects.filter( organization_id=organization.id, provider__in=["visualstudio", "integrations:vsts"], integration_id__isnull=True, ).values_list("id", flat=True) for repo_id in repo_ids: migrate_repo.apply_async( kwargs={ "repo_id": repo_id, "integration_id": integration.id, "organization_id": organization.id, })
def post_install( self, integration: Integration, organization: Organization, extra: Mapping[str, Any] | None = None, ) -> None: repo_ids = Repository.objects.filter( organization_id=organization.id, provider__in=["github", "integrations:github"], integration_id__isnull=True, ).values_list("id", flat=True) for repo_id in repo_ids: migrate_repo.apply_async( kwargs={ "repo_id": repo_id, "integration_id": integration.id, "organization_id": organization.id, })