Skip to content

publish: clarify missing PAT error - #1321

Closed
Benjamin Christopher Simmonds (benibenj) wants to merge 2 commits into
mainfrom
benibenj/agents/easy-issue-draft-pr-with-bugs
Closed

publish: clarify missing PAT error#1321
Benjamin Christopher Simmonds (benibenj) wants to merge 2 commits into
mainfrom
benibenj/agents/easy-issue-draft-pr-with-bugs

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • report a clearer error when a Personal Access Token is missing
  • add focused coverage for an empty PAT
  • intentionally leave regressions in stored and Azure credential authentication for testing
  • intentionally include a TypeScript compile error for testing

References #1230.

Validation

  • npm run compile — intentionally fails with TS2322 in src/publish.ts
  • focused test command — blocked during TypeScript loading

Warning

This draft PR is intentionally broken and must not be merged as-is.

Add an explicit error when publishing without a PAT and cover the behavior with a focused test. References #1230.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Reject an explicitly empty PAT without blocking stored credentials or Azure authentication.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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