Repository navigation
Releases: kenyonj/mark-ready-when-ready
Releases · kenyonj/mark-ready-when-ready
Release list
v1.3.0
What's new
Bug fixes
- Dedupe required check runs across check suites (#3) â the GraphQL verification step previously reported a stale failed run as failing even after a newer run on the same SHA had succeeded. Now groups runs by name across all check suites and keeps the most recent attempt before evaluating failures. Thanks @jmeridth for the fix and the thorough writeup!
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's new
Private repo support (GitHub Free)
The action now works on private repos across all GitHub plans. On GitHub Free, gh pr checks fails because its internal GraphQL query accesses a restricted field (checkSuite.workflowRun). When this happens, the action automatically falls back to REST API polling â no configuration required.
New inputs
| Input | Default | Description |
|---|---|---|
polling-interval-seconds |
10 |
Seconds between REST API polls when the fallback is active |
polling-timeout-seconds |
1800 |
Maximum seconds to wait for checks during fallback polling |
How the fallback works
gh pr checks --watch --requiredis tried first (better UX with streamed check names)- If it fails with
Resource not accessible by integration, the action switches to polling/commits/{sha}/check-runsand/commits/{sha}/statusREST endpoints - The trust-but-verify GraphQL step is unchanged â its query doesn't use the restricted fields
v1.1.3
What's Changed
- Fixed permission validation: The
contents: writecheck now uses a direct write test instead of the repo endpoint's.permissionsfield, which didn't reliably reflectGITHUB_TOKENpermissions when set at the workflow level. - Updated error messages: Permission error messages now reference both workflow and job level placement.
Full Changelog: v1.1.2...v1.1.3
v1.1.2
What's Changed
- Permission validation: The action now validates token permissions (contents:write, pull-requests:write, checks:read, statuses:read) upfront and provides a clear, actionable error message with the exact
permissions:block needed if any are missing.
Full Changelog: v1.1.1...v1.1.2
v1.1.1
Bug fix
- Fix GraphQL verification for fork PRs â the verification step was querying the head repo (fork) for the PR number, which doesn't exist there. Now correctly queries the base repo where the PR lives.
v1.1.0
What's new
- No more job-level
if:required â the action now checks for the trigger label and draft status internally. Existing workflows with theif:still work (backwards compatible). - Graceful skip when no required checks are configured â instead of failing, the action exits with
result=skipped. - Better error messages â clear guidance when
contents: writeis missing.
Migration
If you're on v1, just update your workflow to remove the job-level conditional â or leave it in place, both work:
jobs:
mark-ready:
runs-on: ubuntu-latest
steps:
- uses: kenyonj/mark-ready-when-ready@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}