@@ -71,7 +71,7 @@ func TestTrigger_DispatchesWorkflowAndReturnsRunID(t *testing.T) {
7171 _ = json .NewEncoder (w ).Encode (platformgithubactions.DispatchWorkflowResponse {WorkflowRunID : 42 })
7272 }))
7373
74- id , err := r .Trigger (context .Background (), "github://repo/head/aaa " , "github://repo/base/bbb " , nil )
74+ id , err := r .Trigger (context .Background (), "github://repo/base/bbb " , "github://repo/head/aaa " , nil )
7575 require .NoError (t , err )
7676 assert .Equal (t , platformgithubactions .EncodeRunID (42 ), id .ID )
7777
@@ -95,7 +95,7 @@ func TestTrigger_EmptyBaseURI_FullBuild(t *testing.T) {
9595 _ = json .NewEncoder (w ).Encode (platformgithubactions.DispatchWorkflowResponse {WorkflowRunID : 1 })
9696 }))
9797
98- _ , err := r .Trigger (context .Background (), "github://repo/head/aaa" , " " , nil )
98+ _ , err := r .Trigger (context .Background (), "" , " github://repo/head/aaa" , nil )
9999 require .NoError (t , err )
100100
101101 var req platformgithubactions.DispatchWorkflowRequest
@@ -108,7 +108,7 @@ func TestTrigger_DispatchError_ReturnsError(t *testing.T) {
108108 w .WriteHeader (http .StatusInternalServerError )
109109 }))
110110
111- _ , err := r .Trigger (context .Background (), "github://repo/head/aaa" , " " , nil )
111+ _ , err := r .Trigger (context .Background (), "" , " github://repo/head/aaa" , nil )
112112 require .Error (t , err )
113113}
114114
@@ -117,7 +117,7 @@ func TestTrigger_ErrorsWhenDispatchResponseHasNoRunID(t *testing.T) {
117117 _ = json .NewEncoder (w ).Encode (platformgithubactions.DispatchWorkflowResponse {})
118118 }))
119119
120- _ , err := r .Trigger (context .Background (), "github://repo/head/aaa" , " " , nil )
120+ _ , err := r .Trigger (context .Background (), "" , " github://repo/head/aaa" , nil )
121121 require .Error (t , err )
122122 assert .Contains (t , err .Error (), "response missing workflow_run_id" )
123123}
@@ -130,7 +130,7 @@ func TestTrigger_WithMetadata_SetsInput(t *testing.T) {
130130 }))
131131
132132 metadata := entity.BuildMetadata {"requester" : "alice" , "ticket" : "SQ-42" }
133- _ , err := r .Trigger (context .Background (), "github://repo/head/aaa" , " " , metadata )
133+ _ , err := r .Trigger (context .Background (), "" , " github://repo/head/aaa" , metadata )
134134 require .NoError (t , err )
135135
136136 var req platformgithubactions.DispatchWorkflowRequest
@@ -149,7 +149,7 @@ func TestTrigger_NilMetadata_NoMetadataInput(t *testing.T) {
149149 _ = json .NewEncoder (w ).Encode (platformgithubactions.DispatchWorkflowResponse {WorkflowRunID : 11 })
150150 }))
151151
152- _ , err := r .Trigger (context .Background (), "github://repo/head/aaa" , " " , nil )
152+ _ , err := r .Trigger (context .Background (), "" , " github://repo/head/aaa" , nil )
153153 require .NoError (t , err )
154154
155155 var req platformgithubactions.DispatchWorkflowRequest
0 commit comments