Skip to content

Fix: trigger preview deploy on ready_for_review#264

Merged
kwinto merged 1 commit intomainfrom
fix/preview-deploy-ready-for-review
Apr 10, 2026
Merged

Fix: trigger preview deploy on ready_for_review#264
kwinto merged 1 commit intomainfrom
fix/preview-deploy-ready-for-review

Conversation

@kwinto
Copy link
Copy Markdown
Collaborator

@kwinto kwinto commented Apr 10, 2026

Summary

  • The deploy-preview job guards on draft == false, but the workflow only triggered on opened, synchronize, and reopened events
  • When a PR was created as a draft and later marked ready for review, the ready_for_review event was not handled, so no workflow run was triggered and the deploy stayed permanently skipped (e.g. PR Update deperecated packages #263)
  • Adds ready_for_review to the pull_request event types so the deploy runs when a draft PR is promoted

Test plan

  • Create a draft PR, verify deploy-preview is skipped
  • Mark the PR as "Ready for review", verify deploy-preview runs

The deploy-preview job has an `if: draft == false` guard, but the
workflow only listened for opened/synchronize/reopened events.
When a PR was created as draft and later marked ready, no new
workflow run was triggered, so the deploy was permanently skipped.

Adding `ready_for_review` to the event types fixes this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 10, 2026 08:17
@kwinto kwinto temporarily deployed to pr-preview-264 April 10, 2026 08:17 — with GitHub Actions Inactive
@graymalkin77
Copy link
Copy Markdown

graymalkin77 commented Apr 10, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the PR preview deploy GitHub Actions workflow so a preview deployment is triggered when a draft PR is marked “Ready for review”, preventing permanently-skipped preview deploys for PRs that start as drafts.

Changes:

  • Adds the ready_for_review event type to the pull_request workflow trigger.
  • Ensures the existing draft == false job condition can be re-evaluated on the ready-for-review transition.

@kwinto kwinto requested a review from saeb-cognigy April 10, 2026 08:19
@kwinto kwinto merged commit c39ce52 into main Apr 10, 2026
12 checks passed
github-actions Bot added a commit that referenced this pull request Apr 10, 2026
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.

4 participants