X Tutup
Skip to content

Commit 1c74227

Browse files
committed
Use new repo name for update notifier and changelog
1 parent 25dc2b4 commit 1c74227

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ builds:
1313
- -s -w -X github.com/cli/cli/command.Version={{.Version}} -X github.com/cli/cli/command.BuildDate={{time "2006-01-02"}}
1414
- -X github.com/cli/cli/context.oauthClientID={{.Env.GH_OAUTH_CLIENT_ID}}
1515
- -X github.com/cli/cli/context.oauthClientSecret={{.Env.GH_OAUTH_CLIENT_SECRET}}
16-
- -X main.updaterEnabled=github/homebrew-gh
16+
- -X main.updaterEnabled=cli/cli
1717
goos:
1818
- linux
1919
- darwin

command/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func colorableErr(cmd *cobra.Command) io.Writer {
142142
}
143143

144144
func changelogURL(version string) string {
145-
path := "https://github.com/github/homebrew-gh"
145+
path := "https://github.com/cli/cli"
146146
r := regexp.MustCompile(`^v\d+\.\d+.\d+$`)
147147
if !r.MatchString(version) {
148148
return fmt.Sprintf("%s/releases/latest", path)

command/root_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ import (
77

88
func TestChangelogURL(t *testing.T) {
99
tag := "v0.3.2"
10-
url := fmt.Sprintf("https://github.com/github/homebrew-gh/releases/tag/v0.3.2")
10+
url := fmt.Sprintf("https://github.com/cli/cli/releases/tag/v0.3.2")
1111
result := changelogURL(tag)
1212
if result != url {
1313
t.Errorf("expected %s to create url %s but got %s", tag, url, result)
1414
}
1515

1616
tag = "0.3.5-90-gdd3f0e0"
17-
url = fmt.Sprintf("https://github.com/github/homebrew-gh/releases/latest")
17+
url = fmt.Sprintf("https://github.com/cli/cli/releases/latest")
1818
result = changelogURL(tag)
1919
if result != url {
2020
t.Errorf("expected %s to create url %s but got %s", tag, url, result)
2121
}
2222

2323
tag = "deadbeef"
24-
url = fmt.Sprintf("https://github.com/github/homebrew-gh/releases/latest")
24+
url = fmt.Sprintf("https://github.com/cli/cli/releases/latest")
2525
result = changelogURL(tag)
2626
if result != url {
2727
t.Errorf("expected %s to create url %s but got %s", tag, url, result)

0 commit comments

Comments
 (0)
X Tutup