print repo url to stdout

This commit is contained in:
Aryan Bhosale 2025-01-03 10:54:30 +05:30 committed by GitHub
parent 8560c24f3f
commit 8dbbceaaaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -222,7 +222,7 @@ func forkRun(opts *ForkOptions) error {
if connectedToTerminal {
fmt.Fprintf(stderr, "%s Created fork %s\n", cs.SuccessIconWithColor(cs.Green), cs.Bold(ghrepo.FullName(forkedRepo)))
} else {
fmt.Fprintf(stderr, "Created fork %s\n", ghrepo.FullName(forkedRepo))
fmt.Fprintln(opts.IO.Out, ghrepo.GenerateRepoURL(forkedRepo, ""))
}
}