You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(build): Add auto-detection of PR number from GitHub Actions
When the --pr-number argument is not provided to the build upload command,
the PR number is now automatically detected from GitHub Actions environment
variables (GITHUB_EVENT_NAME and GITHUB_REF).
This enhancement works by:
- Checking if GITHUB_EVENT_NAME is "pull_request"
- Parsing GITHUB_REF format "refs/pull/{pr_number}/merge"
- Extracting the PR number and using it as the default value
Includes comprehensive tests to verify the detection logic works correctly
for various GitHub Actions scenarios.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
.help("The pull request number to use for the upload. If not provided, the current pull request number will be used.")
113
+
.help("The pull request number to use for the upload. If not provided, the PR number will be automatically detected from GitHub Actions environment variables.")
0 commit comments