Skip to content

Commit 99060d7

Browse files
committed
fix: replace deprecated github.String with github.Ptr
1 parent b274df9 commit 99060d7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/github/repositories_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,12 +1310,12 @@ func Test_ListBranches(t *testing.T) {
13101310
// Setup mock branches for success case
13111311
mockBranches := []*github.Branch{
13121312
{
1313-
Name: github.String("main"),
1314-
Commit: &github.RepositoryCommit{SHA: github.String("abc123")},
1313+
Name: github.Ptr("main"),
1314+
Commit: &github.RepositoryCommit{SHA: github.Ptr("abc123")},
13151315
},
13161316
{
1317-
Name: github.String("develop"),
1318-
Commit: &github.RepositoryCommit{SHA: github.String("def456")},
1317+
Name: github.Ptr("develop"),
1318+
Commit: &github.RepositoryCommit{SHA: github.Ptr("def456")},
13191319
},
13201320
}
13211321

0 commit comments

Comments
 (0)