Skip to content

Commit 31dbd43

Browse files
committed
update hook types + patch
1 parent 6b04a68 commit 31dbd43

File tree

4 files changed

+41
-37
lines changed

4 files changed

+41
-37
lines changed

bitbucket/resource_hook.go

+19-17
Original file line numberDiff line numberDiff line change
@@ -95,31 +95,33 @@ func resourceHook() *schema.Resource {
9595
Elem: &schema.Schema{
9696
Type: schema.TypeString,
9797
ValidateFunc: validation.StringInSlice([]string{
98-
"pullrequest:unapproved",
9998
"issue:comment_created",
100-
"repo:imported",
101-
"repo:created",
102-
"repo:commit_comment_created",
103-
"pullrequest:approved",
104-
"pullrequest:comment_updated",
99+
"issue:created",
105100
"issue:updated",
106101
"project:updated",
107-
"repo:deleted",
102+
"pullrequest:approved",
108103
"pullrequest:changes_request_created",
104+
"pullrequest:changes_request_removed",
109105
"pullrequest:comment_created",
110-
"repo:commit_status_updated",
111-
"pullrequest:updated",
112-
"issue:created",
113-
"repo:fork",
114106
"pullrequest:comment_deleted",
115-
"repo:commit_status_created",
116-
"repo:updated",
117-
"pullrequest:rejected",
118-
"pullrequest:fulfilled",
107+
"pullrequest:comment_reopened",
108+
"pullrequest:comment_resolved",
109+
"pullrequest:comment_updated",
119110
"pullrequest:created",
120-
"pullrequest:changes_request_removed",
121-
"repo:transfer",
111+
"pullrequest:fulfilled",
112+
"pullrequest:rejected",
113+
"pullrequest:unapproved",
114+
"pullrequest:updated",
115+
"repo:commit_comment_created",
116+
"repo:commit_status_created",
117+
"repo:commit_status_updated",
118+
"repo:created",
119+
"repo:deleted",
120+
"repo:fork",
121+
"repo:imported",
122122
"repo:push",
123+
"repo:transfer",
124+
"repo:updated",
123125
}, false),
124126
},
125127
},

bitbucket/resource_workspace_hook.go

+19-17
Original file line numberDiff line numberDiff line change
@@ -76,31 +76,33 @@ func resourceWorkspaceHook() *schema.Resource {
7676
Elem: &schema.Schema{
7777
Type: schema.TypeString,
7878
ValidateFunc: validation.StringInSlice([]string{
79-
"pullrequest:unapproved",
8079
"issue:comment_created",
81-
"repo:imported",
82-
"repo:created",
83-
"repo:commit_comment_created",
84-
"pullrequest:approved",
85-
"pullrequest:comment_updated",
80+
"issue:created",
8681
"issue:updated",
8782
"project:updated",
88-
"repo:deleted",
83+
"pullrequest:approved",
8984
"pullrequest:changes_request_created",
85+
"pullrequest:changes_request_removed",
9086
"pullrequest:comment_created",
91-
"repo:commit_status_updated",
92-
"pullrequest:updated",
93-
"issue:created",
94-
"repo:fork",
9587
"pullrequest:comment_deleted",
96-
"repo:commit_status_created",
97-
"repo:updated",
98-
"pullrequest:rejected",
99-
"pullrequest:fulfilled",
88+
"pullrequest:comment_reopened",
89+
"pullrequest:comment_resolved",
90+
"pullrequest:comment_updated",
10091
"pullrequest:created",
101-
"pullrequest:changes_request_removed",
102-
"repo:transfer",
92+
"pullrequest:fulfilled",
93+
"pullrequest:rejected",
94+
"pullrequest:unapproved",
95+
"pullrequest:updated",
96+
"repo:commit_comment_created",
97+
"repo:commit_status_created",
98+
"repo:commit_status_updated",
99+
"repo:created",
100+
"repo:deleted",
101+
"repo:fork",
102+
"repo:imported",
103103
"repo:push",
104+
"repo:transfer",
105+
"repo:updated",
104106
}, false),
105107
},
106108
},

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/terraform-providers/terraform-provider-bitbucket
22

33
require (
4-
github.com/DrFaust92/bitbucket-go-client v0.9.0
4+
github.com/DrFaust92/bitbucket-go-client v0.9.1
55
github.com/antihax/optional v1.0.0
66
github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0
77
github.com/satori/go.uuid v1.2.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk=
22
dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
3-
github.com/DrFaust92/bitbucket-go-client v0.9.0 h1:kaskqXI1W/2CNCaAEtAZAioeOWMQA2Ujx7T7GWMV40U=
4-
github.com/DrFaust92/bitbucket-go-client v0.9.0/go.mod h1:Ok5UjwgGv022uXk34qQpE2MhOC4xU1i8ieI2Xa80UC8=
3+
github.com/DrFaust92/bitbucket-go-client v0.9.1 h1:gsKb5FzhF/PArUrl6Gq9OoQ+UlGEz0Wa996wQzyeEAA=
4+
github.com/DrFaust92/bitbucket-go-client v0.9.1/go.mod h1:Ok5UjwgGv022uXk34qQpE2MhOC4xU1i8ieI2Xa80UC8=
55
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
66
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
77
github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95 h1:KLq8BE0KwCL+mmXnjLWEAOYO+2l2AE4YMmqG1ZpZHBs=

0 commit comments

Comments
 (0)