Skip to content

Commit b23095c

Browse files
Update release-drafter/release-drafter action to v7 (#196)
* Update release-drafter/release-drafter action to v7 * Fix lint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tom Fleet <me@followtheprocess.codes>
1 parent 9e91a97 commit b23095c

6 files changed

Lines changed: 14 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
echo "version=$VERSION" >> $GITHUB_OUTPUT
3232
3333
- name: Publish Draft Release
34-
uses: release-drafter/release-drafter@v6
34+
uses: release-drafter/release-drafter@v7
3535
with:
3636
version: ${{ steps.version.outputs.version }}
3737
publish: true

.github/workflows/release_drafter.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
types:
9-
- opened
10-
- reopened
11-
- synchronize
127

138
permissions: {}
149

@@ -22,6 +17,6 @@ jobs:
2217

2318
steps:
2419
- name: Run Release Drafter
25-
uses: release-drafter/release-drafter@v6
20+
uses: release-drafter/release-drafter@v7
2621
env:
2722
GITHUB_TOKEN: ${{ github.token }}

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,6 @@ linters:
170170

171171
- name: var-naming
172172
disabled: true
173+
174+
- name: package-naming
175+
disabled: true

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.followtheprocess.codes/cli
22

3-
go 1.25
3+
go 1.26
44

55
ignore (
66
./docs
@@ -15,6 +15,6 @@ require (
1515

1616
require (
1717
go.yaml.in/yaml/v4 v4.0.0-rc.3 // indirect
18-
golang.org/x/sys v0.39.0 // indirect
19-
golang.org/x/term v0.38.0 // indirect
18+
golang.org/x/sys v0.42.0 // indirect
19+
golang.org/x/term v0.41.0 // indirect
2020
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ go.followtheprocess.codes/test v1.1.0 h1:1v2JyMd3STr7dIXzcHEhct2qvS8/mTtGYbSyhpR
66
go.followtheprocess.codes/test v1.1.0/go.mod h1:BHZi5SZahJw01xcuc7EgrlyzX7zJLXAWy11rOR9geVw=
77
go.yaml.in/yaml/v4 v4.0.0-rc.3 h1:3h1fjsh1CTAPjW7q/EMe+C8shx5d8ctzZTrLcs/j8Go=
88
go.yaml.in/yaml/v4 v4.0.0-rc.3/go.mod h1:aZqd9kCMsGL7AuUv/m/PvWLdg5sjJsZ4oHDEnfPPfY0=
9-
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
10-
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
11-
golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q=
12-
golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg=
9+
golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=
10+
golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
11+
golang.org/x/term v0.41.0 h1:QCgPso/Q3RTJx2Th4bDLqML4W6iJiaXFq2/ftQF13YU=
12+
golang.org/x/term v0.41.0/go.mod h1:3pfBgksrReYfZ5lvYM0kSO0LIkAl4Yl2bXOkKP7Ec2A=
1313
golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=
1414
golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=

internal/arg/arg_test.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -526,17 +526,12 @@ func TestArgableTypes(t *testing.T) {
526526
}
527527

528528
func TestDefaults(t *testing.T) {
529-
str, err := arg.New(new(string), "str", "A string", arg.Config[string]{DefaultValue: pointer("hello")})
529+
str, err := arg.New(new(string), "str", "A string", arg.Config[string]{DefaultValue: new("hello")})
530530
test.Ok(t, err)
531531

532-
intArg, err := arg.New(new(int), "int", "A string", arg.Config[int]{DefaultValue: pointer(27)})
532+
intArg, err := arg.New(new(int), "int", "A string", arg.Config[int]{DefaultValue: new(27)})
533533
test.Ok(t, err)
534534

535535
test.Equal(t, str.Default(), "hello")
536536
test.Equal(t, intArg.Default(), "27")
537537
}
538-
539-
// pointer creates a new variable of the given value and returns its pointer.
540-
func pointer[T any](value T) *T {
541-
return &value
542-
}

0 commit comments

Comments
 (0)