Skip to content

Fix pr-triage workflow fromJSON handling - #3

Closed
Kyle-Ye wants to merge 1 commit into
mainfrom
fix-pr-triage-fromjson
Closed

Fix pr-triage workflow fromJSON handling#3
Kyle-Ye wants to merge 1 commit into
mainfrom
fix-pr-triage-fromjson

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Oct 5, 2025

Copy link
Copy Markdown
Member

This PR fixes the pr-triage workflow to properly handle both trigger types:

Problem:

  • fromJSON(inputs.pr_number) fails with "empty input" error when triggered by pull_request events
  • Direct use of inputs.pr_number || github.event.pull_request.number doesn't work due to GitHub's double input bug

Solution:
Use conditional expression: inputs.pr_number && fromJSON(inputs.pr_number) || github.event.pull_request.number

This ensures:

  • When triggered via workflow_dispatch: uses fromJSON(inputs.pr_number)
  • When triggered via pull_request: uses github.event.pull_request.number directly

Use inputs.pr_number && fromJSON(inputs.pr_number) || github.event.pull_request.number
to handle both workflow_dispatch and pull_request triggers correctly.
@github-actions github-actions Bot added the bug Something isn't working label Oct 5, 2025
@Kyle-Ye

Kyle-Ye commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Closing legacy test PRs before the VersionedDocC GitHub Pages validation.

@Kyle-Ye Kyle-Ye closed this Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant