def METHOD_NAME(self, release, **values):
    if not values.get("owner_id", None):
        return
    # check if user exists, and then try to get refs based on version
    repo_project_option = ProjectOption.objects.get_value(
        project=self.project, key="heroku:repository"
    )
    deploy_project_option = (
        ProjectOption.objects.get_value(
            project=self.project, key="heroku:environment", default="production"
        )
        or "production"
    )
    if repo_project_option:
        try:
            repository = Repository.objects.get(
                organization_id=self.project.organization_id, name=repo_project_option
            )
        except Repository.DoesNotExist:
            logger.info(
                "repository.missing",
                extra={
                    "organization_id": self.project.organization_id,
                    "project_id": self.project.id,
                    "repository": repo_project_option,
                },
            )
        else:
            release.METHOD_NAME(
                refs=[{"commit": release.version, "repository": repository.name}],
                user_id=values["owner_id"],
                fetch=True,
            )
    # create deploy associated with release via ReleaseDeploysEndpoint
    endpoint = (
        f"/organizations/{self.project.organization.slug}/releases/{release.version}/deploys/"
    )
    client = self.get_client()
    client.post(endpoint, data={"environment": deploy_project_option}, auth=self.get_auth())