@@ -39,7 +39,7 @@ func TestWebhook(t *testing.T) {
39
39
Description : "go-bb-test" ,
40
40
Url : "https://example.com" ,
41
41
Active : false ,
42
- Events : []string {"repo:push" , "issue:created" },
42
+ Events : []string {bitbucket . RepoPushEvent , bitbucket . IssueCreatedEvent },
43
43
}
44
44
45
45
webhook , err := c .Repositories .Webhooks .Create (opt )
@@ -103,7 +103,7 @@ func TestWebhook(t *testing.T) {
103
103
Uuid : webhookResourceUuid ,
104
104
Description : "go-bb-test-new" ,
105
105
Url : "https://new-example.com" ,
106
- Events : []string {"repo:push" , "issue:created" , "repo:fork" },
106
+ Events : []string {bitbucket . RepoPushEvent , bitbucket . IssueCreatedEvent , bitbucket . RepoForkEvent },
107
107
}
108
108
webhook , err := c .Repositories .Webhooks .Update (opt )
109
109
if err != nil {
@@ -164,7 +164,7 @@ func TestWebhook(t *testing.T) {
164
164
Description : fmt .Sprintf ("go-bb-test-%d" , i ),
165
165
Url : fmt .Sprintf ("https://example.com/%d" , i ),
166
166
Active : false ,
167
- Events : []string {"repo:push" , "issue:created" },
167
+ Events : []string {bitbucket . RepoPushEvent , bitbucket . IssueCreatedEvent },
168
168
}
169
169
170
170
webhook , err := c .Repositories .Webhooks .Create (opt )
0 commit comments