@@ -37,7 +37,7 @@ func TestProvider_Detect(t *testing.T) {
3737 {
3838 name : "push event" ,
3939 event : types.PushRequestEvent {
40- Actor : types. EventActor {
40+ Actor : bbv1. UserWithLinks {
4141 ID : 111 ,
4242 },
4343 Repository : bbv1.Repository {},
@@ -69,7 +69,7 @@ func TestProvider_Detect(t *testing.T) {
6969 {
7070 name : "retest comment" ,
7171 event : types.PullRequestEvent {
72- Comment : bbv1.Comment {Text : "/retest" },
72+ Comment : bbv1.ActivityComment {Text : "/retest" },
7373 },
7474 eventType : "pr:comment:added" ,
7575 isBS : true ,
@@ -78,7 +78,7 @@ func TestProvider_Detect(t *testing.T) {
7878 {
7979 name : "random comment" ,
8080 event : types.PullRequestEvent {
81- Comment : bbv1.Comment {Text : "random string, ignore me :)" },
81+ Comment : bbv1.ActivityComment {Text : "random string, ignore me :)" },
8282 },
8383 eventType : "pr:comment:added" ,
8484 isBS : true ,
@@ -87,7 +87,7 @@ func TestProvider_Detect(t *testing.T) {
8787 {
8888 name : "ok-to-test comment" ,
8989 event : types.PullRequestEvent {
90- Comment : bbv1.Comment {Text : "/ok-to-test" },
90+ Comment : bbv1.ActivityComment {Text : "/ok-to-test" },
9191 },
9292 eventType : "pr:comment:added" ,
9393 isBS : true ,
@@ -96,7 +96,7 @@ func TestProvider_Detect(t *testing.T) {
9696 {
9797 name : "cancel comment" ,
9898 event : types.PullRequestEvent {
99- Comment : bbv1.Comment {Text : "/cancel" },
99+ Comment : bbv1.ActivityComment {Text : "/cancel" },
100100 },
101101 eventType : "pr:comment:added" ,
102102 isBS : true ,
@@ -105,7 +105,7 @@ func TestProvider_Detect(t *testing.T) {
105105 {
106106 name : "cancel a pipelinerun comment" ,
107107 event : types.PullRequestEvent {
108- Comment : bbv1.Comment {Text : "/cancel dummy" },
108+ Comment : bbv1.ActivityComment {Text : "/cancel dummy" },
109109 },
110110 eventType : "pr:comment:added" ,
111111 isBS : true ,
0 commit comments