Skip to content

fix: support ready_for_review activity type in pull_request_target trigger - #49865

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-ready-for-review-trigger
Aug 2, 2026
Merged

fix: support ready_for_review activity type in pull_request_target trigger#49865
pelikhan merged 3 commits into
mainfrom
copilot/fix-ready-for-review-trigger

Conversation

Copilot AI commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

pull_request_target.types rejected ready_for_review even though it's a valid activity type for pull_request. This made it impossible to migrate workflows like:

on:
  pull_request_target:
    types: [opened, ready_for_review]  # previously: schema validation error

Changes

  • Schema (pkg/parser/schemas/main_workflow_schema.json): Added ready_for_review to the on.pull_request_target.types enum, aligning it with the pull_request event's allowed types.
  • Test (pkg/parser/schema_location_test.go): Regression test for pull_request_target with types: [ready_for_review].
  • Changeset: Patch entry documenting the fix.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix 'ready_for_review' state support in pull_request_target fix: support ready_for_review activity type in pull_request_target trigger Aug 2, 2026
Copilot AI requested a review from pelikhan August 2, 2026 22:47
@pelikhan
pelikhan marked this pull request as ready for review August 2, 2026 22:48
Copilot AI review requested due to automatic review settings August 2, 2026 22:48
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. Test Quality Sentinel skipped.

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.

Pull request overview

Adds schema support for ready_for_review in pull_request_target triggers.

Changes:

  • Extends the trigger activity enum.
  • Adds regression coverage.
  • Documents the fix in a patch changeset.
Show a summary per file
File Description
pkg/parser/schemas/main_workflow_schema.json Allows ready_for_review.
pkg/parser/schema_location_test.go Tests schema acceptance.
.changeset/fix-ready-for-review-pull-request-target.md Adds release documentation.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

"gh-aw": patch
---

Fixed `ready_for_review` activity type not being accepted in `on.pull_request_target.types`. The schema now allows the same activity types for `pull_request_target` as for `pull_request`, including `ready_for_review`.
@pelikhan

pelikhan commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

@copilot Fix the code for all comments in this review thread.

When a review comment includes a suggested change, apply the suggestion exactly.

Do not make changes beyond what is described in the linked review thread.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Fix the code for all comments in this review thread.

When a review comment includes a suggested change, apply the s...

Addressed in de4ba28.

@pelikhan
pelikhan merged commit f5bd992 into main Aug 2, 2026
@pelikhan
pelikhan deleted the copilot/fix-ready-for-review-trigger branch August 2, 2026 23:55
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.3

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.

'ready_for_review' state not supported for 'pull_request_target'

3 participants