@@ -1628,15 +1628,15 @@ jobs:
16281628
16291629 // create a PR to modify "dir1/dir1.txt", the workflow will be triggered
16301630 testEditFileToNewBranch (t , session , "user2" , repoName , repo .DefaultBranch , "update-dir1" , "dir1/dir1.txt" , "11" )
1631- apiPull , err := doAPICreatePullRequest (apiCtx , "user2" , repoName , repo .DefaultBranch , "update-dir1" )(t )
1631+ _ , err := doAPICreatePullRequest (apiCtx , "user2" , repoName , repo .DefaultBranch , "update-dir1" )(t )
16321632 assert .NoError (t , err )
16331633 pr1Task := runner .fetchTask (t )
16341634 _ , _ , pr1Run := getTaskAndJobAndRunByTaskID (t , pr1Task .Id )
16351635 assert .Equal (t , webhook_module .HookEventPullRequest , pr1Run .Event )
16361636
16371637 // create a PR to modify "dir2/dir2.txt" then update main branch and rebase, the workflow will not be triggered
16381638 testEditFileToNewBranch (t , session , "user2" , repoName , repo .DefaultBranch , "update-dir2" , "dir2/dir2.txt" , "22" )
1639- apiPull , err = doAPICreatePullRequest (apiCtx , "user2" , repoName , repo .DefaultBranch , "update-dir2" )(t )
1639+ apiPull , err : = doAPICreatePullRequest (apiCtx , "user2" , repoName , repo .DefaultBranch , "update-dir2" )(t )
16401640 runner .fetchNoTask (t )
16411641 assert .NoError (t , err )
16421642 testEditFile (t , session , "user2" , repoName , repo .DefaultBranch , "dir1/dir1.txt" , "11" ) // change the file in "dir1"
0 commit comments