Skip to content

Commit

Permalink
update hook types + patch
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Nov 4, 2023
1 parent 6b04a68 commit 31dbd43
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 37 deletions.
36 changes: 19 additions & 17 deletions bitbucket/resource_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,33 @@ func resourceHook() *schema.Resource {
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{
"pullrequest:unapproved",
"issue:comment_created",
"repo:imported",
"repo:created",
"repo:commit_comment_created",
"pullrequest:approved",
"pullrequest:comment_updated",
"issue:created",
"issue:updated",
"project:updated",
"repo:deleted",
"pullrequest:approved",
"pullrequest:changes_request_created",
"pullrequest:changes_request_removed",
"pullrequest:comment_created",
"repo:commit_status_updated",
"pullrequest:updated",
"issue:created",
"repo:fork",
"pullrequest:comment_deleted",
"repo:commit_status_created",
"repo:updated",
"pullrequest:rejected",
"pullrequest:fulfilled",
"pullrequest:comment_reopened",
"pullrequest:comment_resolved",
"pullrequest:comment_updated",
"pullrequest:created",
"pullrequest:changes_request_removed",
"repo:transfer",
"pullrequest:fulfilled",
"pullrequest:rejected",
"pullrequest:unapproved",
"pullrequest:updated",
"repo:commit_comment_created",
"repo:commit_status_created",
"repo:commit_status_updated",
"repo:created",
"repo:deleted",
"repo:fork",
"repo:imported",
"repo:push",
"repo:transfer",
"repo:updated",
}, false),
},
},
Expand Down
36 changes: 19 additions & 17 deletions bitbucket/resource_workspace_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,33 @@ func resourceWorkspaceHook() *schema.Resource {
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{
"pullrequest:unapproved",
"issue:comment_created",
"repo:imported",
"repo:created",
"repo:commit_comment_created",
"pullrequest:approved",
"pullrequest:comment_updated",
"issue:created",
"issue:updated",
"project:updated",
"repo:deleted",
"pullrequest:approved",
"pullrequest:changes_request_created",
"pullrequest:changes_request_removed",
"pullrequest:comment_created",
"repo:commit_status_updated",
"pullrequest:updated",
"issue:created",
"repo:fork",
"pullrequest:comment_deleted",
"repo:commit_status_created",
"repo:updated",
"pullrequest:rejected",
"pullrequest:fulfilled",
"pullrequest:comment_reopened",
"pullrequest:comment_resolved",
"pullrequest:comment_updated",
"pullrequest:created",
"pullrequest:changes_request_removed",
"repo:transfer",
"pullrequest:fulfilled",
"pullrequest:rejected",
"pullrequest:unapproved",
"pullrequest:updated",
"repo:commit_comment_created",
"repo:commit_status_created",
"repo:commit_status_updated",
"repo:created",
"repo:deleted",
"repo:fork",
"repo:imported",
"repo:push",
"repo:transfer",
"repo:updated",
}, false),
},
},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/terraform-providers/terraform-provider-bitbucket

require (
github.com/DrFaust92/bitbucket-go-client v0.9.0
github.com/DrFaust92/bitbucket-go-client v0.9.1
github.com/antihax/optional v1.0.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0
github.com/satori/go.uuid v1.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
github.com/DrFaust92/bitbucket-go-client v0.9.0 h1:kaskqXI1W/2CNCaAEtAZAioeOWMQA2Ujx7T7GWMV40U=
github.com/DrFaust92/bitbucket-go-client v0.9.0/go.mod h1:Ok5UjwgGv022uXk34qQpE2MhOC4xU1i8ieI2Xa80UC8=
github.com/DrFaust92/bitbucket-go-client v0.9.1 h1:gsKb5FzhF/PArUrl6Gq9OoQ+UlGEz0Wa996wQzyeEAA=
github.com/DrFaust92/bitbucket-go-client v0.9.1/go.mod h1:Ok5UjwgGv022uXk34qQpE2MhOC4xU1i8ieI2Xa80UC8=
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 h1:KLq8BE0KwCL+mmXnjLWEAOYO+2l2AE4YMmqG1ZpZHBs=
Expand Down

0 comments on commit 31dbd43

Please sign in to comment.