@@ -117,6 +117,7 @@ func TestPRCheckout_sameRepo(t *testing.T) {
117117 ` ))
118118
119119 ranCommands := [][]string {}
120+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
120121 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
121122 switch strings .Join (cmd .Args , " " ) {
122123 case "git show-ref --verify -- refs/heads/feature" :
@@ -162,6 +163,7 @@ func TestPRCheckout_urlArg(t *testing.T) {
162163 ` ))
163164
164165 ranCommands := [][]string {}
166+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
165167 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
166168 switch strings .Join (cmd .Args , " " ) {
167169 case "git show-ref --verify -- refs/heads/feature" :
@@ -201,6 +203,7 @@ func TestPRCheckout_urlArg_differentBase(t *testing.T) {
201203 http .StubRepoInfoResponse ("OWNER" , "REPO" , "master" )
202204
203205 ranCommands := [][]string {}
206+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
204207 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
205208 switch strings .Join (cmd .Args , " " ) {
206209 case "git show-ref --verify -- refs/heads/feature" :
@@ -253,6 +256,7 @@ func TestPRCheckout_branchArg(t *testing.T) {
253256 ` ))
254257
255258 ranCommands := [][]string {}
259+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
256260 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
257261 switch strings .Join (cmd .Args , " " ) {
258262 case "git show-ref --verify -- refs/heads/feature" :
@@ -292,6 +296,7 @@ func TestPRCheckout_existingBranch(t *testing.T) {
292296 ` ))
293297
294298 ranCommands := [][]string {}
299+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
295300 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
296301 switch strings .Join (cmd .Args , " " ) {
297302 case "git show-ref --verify -- refs/heads/feature" :
@@ -344,6 +349,7 @@ func TestPRCheckout_differentRepo_remoteExists(t *testing.T) {
344349 ` ))
345350
346351 ranCommands := [][]string {}
352+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
347353 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
348354 switch strings .Join (cmd .Args , " " ) {
349355 case "git show-ref --verify -- refs/heads/feature" :
@@ -386,6 +392,7 @@ func TestPRCheckout_differentRepo(t *testing.T) {
386392 ` ))
387393
388394 ranCommands := [][]string {}
395+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
389396 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
390397 switch strings .Join (cmd .Args , " " ) {
391398 case "git config branch.feature.merge" :
@@ -428,6 +435,7 @@ func TestPRCheckout_differentRepo_existingBranch(t *testing.T) {
428435 ` ))
429436
430437 ranCommands := [][]string {}
438+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
431439 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
432440 switch strings .Join (cmd .Args , " " ) {
433441 case "git config branch.feature.merge" :
@@ -468,6 +476,7 @@ func TestPRCheckout_detachedHead(t *testing.T) {
468476 ` ))
469477
470478 ranCommands := [][]string {}
479+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
471480 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
472481 switch strings .Join (cmd .Args , " " ) {
473482 case "git config branch.feature.merge" :
@@ -508,6 +517,7 @@ func TestPRCheckout_differentRepo_currentBranch(t *testing.T) {
508517 ` ))
509518
510519 ranCommands := [][]string {}
520+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
511521 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
512522 switch strings .Join (cmd .Args , " " ) {
513523 case "git config branch.feature.merge" :
@@ -547,6 +557,7 @@ func TestPRCheckout_differentRepo_invalidBranchName(t *testing.T) {
547557 } } } }
548558 ` ))
549559
560+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
550561 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
551562 t .Errorf ("unexpected external invocation: %v" , cmd .Args )
552563 return & test.OutputStub {}
@@ -580,6 +591,7 @@ func TestPRCheckout_maintainerCanModify(t *testing.T) {
580591 ` ))
581592
582593 ranCommands := [][]string {}
594+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
583595 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
584596 switch strings .Join (cmd .Args , " " ) {
585597 case "git config branch.feature.merge" :
@@ -621,6 +633,7 @@ func TestPRCheckout_recurseSubmodules(t *testing.T) {
621633 ` ))
622634
623635 ranCommands := [][]string {}
636+ //nolint:staticcheck // SA1019 TODO: rewrite to use run.Stub
624637 restoreCmd := run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
625638 switch strings .Join (cmd .Args , " " ) {
626639 case "git show-ref --verify -- refs/heads/feature" :
0 commit comments