Skip to content

Commit 4fb648d

Browse files
committed
Silence linting warnings for deprecated fields in main_test.go
Signed-off-by: timflannagan <[email protected]>
1 parent 118aa75 commit 4fb648d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ func TestGenerateChangelog_Mocked(t *testing.T) {
5757
mock.WithRequestMatch(
5858
mock.GetReposPullsByOwnerByRepoByPullNumber,
5959
github.PullRequest{
60-
Number: github.Int(42),
61-
Title: github.String("Add new feature"),
62-
Body: github.String("```release-note\nMy note for PR42\n```"),
60+
Number: github.Ptr(42),
61+
Title: github.Ptr("Add new feature"),
62+
Body: github.Ptr("```release-note\nMy note for PR42\n```"),
6363
Labels: []*github.Label{
64-
{Name: github.String("kind/new-feature")},
64+
{Name: github.Ptr("kind/new-feature")},
6565
},
6666
},
6767
),

0 commit comments

Comments
 (0)