Skip to content

Allow dry-run without authentication#91

Merged
brynary merged 3 commits into
mainfrom
allow-dry-run-without-auth
May 4, 2025
Merged

Allow dry-run without authentication#91
brynary merged 3 commits into
mainfrom
allow-dry-run-without-auth

Conversation

@brynary

@brynary brynary commented May 4, 2025

Copy link
Copy Markdown
Member

Summary

  • Allow running with dry-run option without providing authentication
  • Skip token validation when dry-run is true
  • Allow CLI execution without a token when in dry-run mode

Test plan

  • Added unit tests for validation logic with dry-run
  • Added tests for token retrieval with dry-run
  • Added integration test for action execution with dry-run without auth

🤖 Generated with Claude Code

- Skip token validation when dry-run is true
- Allow getToken() to return null in dry-run mode
- Update action execution to handle null token
- Add test coverage for the new functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 4, 2025 16:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

@qltysh

qltysh Bot commented May 4, 2025

Copy link
Copy Markdown
Contributor

Diff Coverage: The code coverage on the diff in this pull request is 100.0%.

Total Coverage: This PR will increase coverage by 0.13%.

File Coverage Changes
Path File Coverage Δ Indirect
coverage/src/action.ts 0.1
coverage/src/settings.ts 0.5
🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@brynary brynary merged commit 776f41a into main May 4, 2025
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.

2 participants