Skip to content

fix(forge): warn when a GitHub token is missing - #766

Merged
koterpillar merged 1 commit into
mainfrom
warn-missing-github-token
Nov 29, 2026
Merged

koterpillar merged 1 commit into
mainfrom
warn-missing-github-token

Conversation

@koterpillar

Copy link
Copy Markdown
Owner

Summary

Warn when a GitHub release lookup has no token. The warning names the repository, explains the rate limit risk, and suggests setting GITHUB_TOKEN or running gh auth login. The lookup continues without authentication.

Use a dedicated warning log entry with a standard yellow label in ANSI terminals and a plain-text label in other output. Treat empty gh auth token output as a missing token.

Verification

  • ./bin/lint
  • 32 display tests covering ANSI and plain output
  • Focused regression test for the missing-token warning

@codecov

codecov Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.28571% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.09%. Comparing base (aedc254) to head (988675a).

Files with missing lines Patch % Lines
test/Mybox/Package/ForgeSpec.hs 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #766   +/-   ##
=======================================
  Coverage   92.08%   92.09%           
=======================================
  Files         131      131           
  Lines        5524     5542   +18     
  Branches      331      332    +1     
=======================================
+ Hits         5087     5104   +17     
  Misses        106      106           
- Partials      331      332    +1     

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@koterpillar
koterpillar merged commit b52dabb into main Nov 29, 2026
13 checks passed
@koterpillar
koterpillar deleted the warn-missing-github-token branch November 29, 2026 22:53
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