Skip to content

feat: add allow-forked-pr-uploads input - #148

Merged
acatxnamedvirtue merged 2 commits into
mainfrom
tyler/allow-forked-pr-uploads
Sep 24, 2026
Merged

acatxnamedvirtue merged 2 commits into
mainfrom
tyler/allow-forked-pr-uploads

Conversation

@acatxnamedvirtue

Copy link
Copy Markdown
Contributor

Summary

Exposes the CLI's --allow-forked-pr-uploads (analytics-cli#1205, shipped in 0.15.5-beta.3) as an action input.

  • allow-forked-pr-uploads: true forwards the bare flag to the CLI
  • validateInputs accepts it as the third alternative to token / public-repo-id; without it the action rejected the step with Missing organization token or public repo id before the CLI ever ran, so setting TRUNK_ALLOW_FORKED_PR_UPLOADS in the step env was not enough
  • dist/index.js rebuilt with pnpm build

The CLI still owns the --test-collection-id requirement and errors at arg-parse time, so the action does not duplicate that check.

Test plan

🤖 Generated with Claude Code

Forwards --allow-forked-pr-uploads (analytics-cli >= 0.15.5-beta.3) and
accepts it in place of a token or public repo id, so a forked pull_request
run can upload against a test collection that has opted in.
@trunk-staging-io

trunk-staging-io Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

@TylerJang27 TylerJang27 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

one note

Comment thread README.md Outdated
@acatxnamedvirtue
acatxnamedvirtue merged commit a4bb505 into main Sep 24, 2026
8 checks passed
@acatxnamedvirtue
acatxnamedvirtue deleted the tyler/allow-forked-pr-uploads branch September 24, 2026 19:57
@trunk-io

trunk-io Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants