• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

astronomer / astro-cli / 9f7f061f-5710-402d-bc0a-d10828cdaf84
45%
main: 44%

Build:
Build:
LAST BUILD BRANCH: kk-plx-644
DEFAULT BRANCH: main
Ran 04 May 2026 04:34PM UTC
Jobs 1
Files 217
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 May 2026 04:28PM UTC coverage: 39.798% (+0.09%) from 39.706%
9f7f061f-5710-402d-bc0a-d10828cdaf84

Pull #2120

circleci

jlaneve
feat(env): add link / unlink / links commands for env variables

Adds three new subcommands under 'astro env variable':
  link <key>   --deployment-id <dep> [--value <override>] [--exclude]
  unlink <key> --deployment-id <dep> [--exclude]
  links <key>

link/unlink default to the workspace object's Links list (with optional
per-link override value). With --exclude they target excludeLinks instead,
useful for opting specific deployments out of an --auto-link var.
links shows the consolidated state (workspace value, autoLink flag, all
links with their overrides, all excludes).

The CLI uses the platform's dedicated POST .../exclude-linking endpoint
for adding excludes; everything else goes through PATCH on the env-object,
echoing autoLinkDeployments back to dodge AINF-1792 (the platform clears
that field when an update body omits it).

Verified end-to-end against a real workspace + deployment:
- link/unlink with and without override
- override visible at deployment scope
- exclude removes from auto-link resolved set
- explicit link with override coexists with auto-link, override wins
- every PATCH path preserves autoLinkDeployments=true

Variables only this PR; airflow-variable / connection / metrics-export
linking will follow once shape is validated.
Pull Request #2120: feat(env): add link / unlink / links commands for env variables

208 of 370 new or added lines in 3 files covered. (56.22%)

112 existing lines in 7 files now uncovered.

26325 of 66146 relevant lines covered (39.8%)

9.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
113
22.6
cmd/cloud/env_var_link.go
49
77.83
cloud/env/link.go

Coverage Regressions

Lines Coverage ∆ File
31
29.86
0.0% cloud/env/format.go
29
65.37
0.51% cmd/cloud/env_var.go
24
88.66
0.0% cloud/organization/organization.go
9
74.68
0.0% cloud/env/var.go
8
41.56
0.0% cloud/env/airflow_var.go
8
53.91
0.0% cloud/env/conn.go
3
95.0
0.0% pkg/util/util.go
Jobs
ID Job ID Ran Files Coverage
1 9f7f061f-5710-402d-bc0a-d10828cdaf84.1 04 May 2026 04:34PM UTC 217
39.8
Source Files on build 9f7f061f-5710-402d-bc0a-d10828cdaf84
  • Tree
  • List 217
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #9F7F061F...
  • Pull Request #2120
  • PR Base - main (#C93075A5...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc