这是indexloc提供的服务,不要输入任何密码
Skip to content

Add support for Deploy Hooks #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Add support for Deploy Hooks #173

merged 1 commit into from
Apr 24, 2024

Conversation

dglsparsons
Copy link
Collaborator

Deploy Hooks are available underneath the git_repostiory section of a
vercel_project.

These generate a URL that can be used to trigger new deployment of a
specific ref.

Existing on the vercel_project resource under git_repository is
the only place that seems to make sense, as linking/unlinking a
git repository causes all deploy hooks to require recreation, so
they cannot exist as a separate resource.

Closes #104

Deploy Hooks are available underneath the `git_repostiory` section of a
`vercel_project`.

These generate a URL that can be used to trigger new deployment of a
specific `ref`.

Existing on the `vercel_project` resource under `git_repository` is
the only place that seems to make sense, as linking/unlinking a
git repository causes all deploy hooks to require recreation, so
they cannot exist as a separate resource.

Closes #104
@@ -37,12 +37,12 @@ func testAccProjectEnvironmentVariablesDoNotExist(n, teamID string) resource.Tes
return fmt.Errorf("no ID is set")
}

project, err := testClient().GetProject(context.TODO(), rs.Primary.ID, teamID, true)
envs, err := testClient().GetEnvironmentVariables(context.TODO(), rs.Primary.ID, teamID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, what does context.TODO do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-04-24 at 14 44 49

@dglsparsons dglsparsons merged commit 09b2325 into main Apr 24, 2024
@dglsparsons dglsparsons deleted the dgls/deploy-hooks branch April 24, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Deploy Hooks resource
2 participants