Open
Conversation
next
Author
|
Internal discussions ongoing here: https://circleci.slack.com/archives/C0AUWSGBFQD/p1777045015516229 |
baa85c9 to
3fd4a53
Compare
nextcircleci open command to next
The open command was present in the legacy (main) branch but was missed during the migration to the next branch. This restores the feature, adapted to the new project structure: - Detects the project from the git remote (GitHub, Bitbucket, GitLab) - Opens the CircleCI pipelines page in the default browser - Uses structured error handling consistent with the new CLI conventions
3fd4a53 to
7553022
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
=========
Internal Checklist
Changes
=======
circleci opencommand ininternal/cmd/open/opencommand ininternal/cmd/root/root.gogithub.com/pkg/browserdependency for opening URLs in the default browserProjectURLcovering GitHub, Bitbucket, GitLab, and invalid slug casesRationale
=========
The
circleci opencommand existed on themainbranch (cmd/open.go) but wasnot carried over during the migration to the
nextbranch. I missed it! This restores thefeature, adapted to the new project structure and conventions (structured errors
via
clierrors, git remote detection viainternal/gitremote,gotest.toolsfor tests).
Considerations
==============
internal/gitremote.Detect()package rather thanreimplementing git remote parsing. This is the same package used by
circleci project follow.also supports GitLab since
gitremote.Detect()already handles it.url.PathEscapeis applied to slug segments as a safety net, though inpractice VCS hosts restrict org/repo names to characters that don't need
escaping.
Screenshots
============
After
Screen.Recording.2026-04-24.at.11.35.46.AM.mov