refactor: move Copilot Agents home URL to capi
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
6b29c2905c
commit
ab7e4039da
2 changed files with 3 additions and 1 deletions
|
|
@ -18,6 +18,8 @@ import (
|
|||
"github.com/vmihailenco/msgpack/v5"
|
||||
)
|
||||
|
||||
const AgentsHomeURL = "https://github.com/copilot/agents"
|
||||
|
||||
var defaultSessionsPerPage = 50
|
||||
|
||||
var ErrSessionNotFound = errors.New("not found")
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ func listRun(opts *ListOptions) error {
|
|||
// based on repo, so we just open the agents dashboard with no args.
|
||||
// If that page is ever added in the future, we should route to that
|
||||
// page instead of the global one when --repo is set.
|
||||
const webURL = "https://github.com/copilot/agents"
|
||||
webURL := capi.AgentsHomeURL
|
||||
if opts.IO.IsStdoutTTY() {
|
||||
fmt.Fprintf(opts.IO.ErrOut, "Opening %s in your browser.\n", text.DisplayURL(webURL))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue