Skip to content

Conversation

@phm07
Copy link
Contributor

@phm07 phm07 commented Nov 19, 2025

This PR adds the ability to create a context with HCLOUD_TOKEN from env without needing an interactive tty.

Fixes #819

@phm07 phm07 self-assigned this Nov 19, 2025
@phm07 phm07 requested a review from a team as a code owner November 19, 2025 13:37
@phm07 phm07 added the feature label Nov 19, 2025
@codecov
Copy link

codecov bot commented Nov 19, 2025

Codecov Report

❌ Patch coverage is 35.71429% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.50%. Comparing base (a026851) to head (336bf02).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/cmd/context/create.go 35.71% 8 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1252      +/-   ##
==========================================
+ Coverage   67.40%   72.50%   +5.09%     
==========================================
  Files         311      311              
  Lines       11422    11431       +9     
==========================================
+ Hits         7699     8288     +589     
+ Misses       2728     2211     -517     
+ Partials      995      932      -63     
Flag Coverage Δ
e2e 52.10% <14.28%> (?)
unit 67.36% <35.71%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@phm07 phm07 merged commit b45753d into main Nov 19, 2025
6 checks passed
@phm07 phm07 deleted the token-from-env branch November 19, 2025 16:28
jooola pushed a commit that referenced this pull request Dec 18, 2025
<!-- section-start changelog -->
### Features

- **firewall**: add list columns for labels, created and age (#1239)
- drop builds for windows armv6 and armv7 (32 bit) (#1246)
- **context**: allow creation in non-interactive tty (#1252)

<!-- section-end changelog -->

---

<details>
<summary><h4>PR by <a
href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a>
🤖</h4></summary>

If you want to modify the proposed release, add you overrides here. You
can learn more about the options in the docs.

## Release Notes

### Prefix / Start

This will be added to the start of the release notes.

~~~~rp-prefix
~~~~

### Suffix / End

This will be added to the end of the release notes.

~~~~rp-suffix
~~~~

</details>

Co-authored-by: Hetzner Cloud Bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

issue with creating context in interactive mode (hcloud: context create is an interactive command)

3 participants