def METHOD_NAME(
    self, *, organization_id: int, create: RpcCreateRepository
) -> RpcRepository | None:
    try:
        with enforce_constraints(transaction.atomic(router.db_for_write(Repository))):
            repository = Repository.objects.create(
                organization_id=organization_id, **create.dict()
            )
            return serialize_repository(repository)
    except IntegrityError:
        return None