Skip to content

Use draft release PRs to trigger CI via ready_for_review#5

Closed
eshork wants to merge 2 commits intomainfrom
feat/automated-release-plz
Closed

Use draft release PRs to trigger CI via ready_for_review#5
eshork wants to merge 2 commits intomainfrom
feat/automated-release-plz

Conversation

@eshork
Copy link
Copy Markdown
Collaborator

@eshork eshork commented Apr 26, 2026

Summary

  • Configure release-plz to create draft PRs (pr_draft = true)
  • Add ready_for_review event type to CI workflow trigger
  • When a maintainer marks the release PR "Ready for review", that user action triggers the full CI suite naturally — no manual commit-status plumbing or PAT needed

Why

Release PRs created by GITHUB_TOKEN don't trigger other workflows (GitHub's anti-recursion rule). Instead of working around this with manual status APIs or extra credentials, we use draft PRs: the human "Ready for review" action is attributed to the user, which triggers CI normally.

Changes

File Change
release-plz.toml Add pr_draft = true
.github/workflows/ci.yml Add ready_for_review to pull_request event types

Closes the "Test workspace" check gate issue on release PR #4.

eshork added 2 commits April 25, 2026 21:46
Adds release-plz configuration and GitHub Actions workflow for automated crates.io publishing via trusted publishing (OIDC). On push to main, release-plz creates a release PR with version bumps and changelogs. When the release PR is merged, it publishes crates in dependency order (libudx -> peeroxide-dht -> peeroxide) and creates GitHub releases with tags.
release-plz now creates draft PRs (pr_draft = true). When a user
marks the PR ready for review, that user action triggers the normal
CI workflow—no manual commit-status plumbing or PAT needed.

ci.yml gains the ready_for_review event type so the Test workspace
check fires on the transition from draft to ready.
@eshork
Copy link
Copy Markdown
Collaborator Author

eshork commented Apr 26, 2026

Stale branch base — recreating from current main.

@eshork eshork closed this Apr 26, 2026
@eshork eshork deleted the feat/automated-release-plz branch April 26, 2026 14:21
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.

1 participant