Skip to content

Add CIRCLE_ORG fallback for org commands - #1572

Open
ahfoysal wants to merge 2 commits into
CircleCI-Public:mainfrom
ahfoysal:af/circle-org-env
Open

Add CIRCLE_ORG fallback for org commands#1572
ahfoysal wants to merge 2 commits into
CircleCI-Public:mainfrom
ahfoysal:af/circle-org-env

Conversation

@ahfoysal

@ahfoysal ahfoysal commented Jul 6, 2026

Copy link
Copy Markdown

Adds CIRCLE_ORG as a default for org-scoped commands when --org is omitted.

Tests:

  • go test ./acceptance -run '^TestContextList' -count=1
  • go test ./internal/cmdutil -count=1
  • go test ./internal/cmd/root -count=1

@ahfoysal

Copy link
Copy Markdown
Author

Merged latest main into this branch and resolved the conflict in internal/cmdutil/orgid.go by keeping both the new upstream InferOrgID helper and the CIRCLE_ORG fallback helper from this PR.

Validation:

  • go test ./internal/cmdutil ./internal/cmd/context
  • go test ./acceptance -run 'TestContextList_OrgFromEnv|TestContextList'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant