Skip to content
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

provider/github: add repository_webhook resource #12924

Merged
merged 2 commits into from
Mar 23, 2017

Commits on Mar 21, 2017

  1. provider/github: add repository_webhook resource

    `repository_webhook` can be used to manage webhooks for repositories.
    It is currently limited to organization repositories only.
    
    The changeset includes both documentation and tests.
    The tests are green:
    
    ```
    make testacc TEST=./builtin/providers/github
    TESTARGS='-run=TestAccGithubRepositoryWebhook_basic'
    ==> Checking that code complies with gofmt requirements...
    go generate $(go list ./... | grep -v /terraform/vendor/)
    2017/03/21 16:20:07 Generated command/internal_plugin_list.go
    TF_ACC=1 go test ./builtin/providers/github -v
    -run=TestAccGithubRepositoryWebhook_basic -timeout 120m
    === RUN   TestAccGithubRepositoryWebhook_basic
    --- PASS: TestAccGithubRepositoryWebhook_basic (5.10s)
    PASS
    ok      github.com/hashicorp/terraform/builtin/providers/github    5.113s
    ```
    nicolai86 committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    d4de143 View commit details
    Browse the repository at this point in the history
  2. provider/github: add github_organization_webhook

    the `github_organization_webhook` resource is similar to the
    `github_repository_webhook` resource, but it manages webhooks for an
    organization.
    
    the tests are green:
    
    ```
    make testacc TEST=./builtin/providers/github
    TESTARGS='-run=TestAccGithubOrganizationWebhook'
    ==> Checking that code complies with gofmt requirements...
    go generate $(go list ./... | grep -v /terraform/vendor/)
    2017/03/21 17:23:33 Generated command/internal_plugin_list.go
    TF_ACC=1 go test ./builtin/providers/github -v
    -run=TestAccGithubOrganizationWebhook -timeout 120m
    === RUN   TestAccGithubOrganizationWebhook_basic
    --- PASS: TestAccGithubOrganizationWebhook_basic (2.09s)
    PASS
    ok      github.com/hashicorp/terraform/builtin/providers/github    2.109s
    ```
    nicolai86 committed Mar 21, 2017
    Configuration menu
    Copy the full SHA
    a0bd5a9 View commit details
    Browse the repository at this point in the history