ci: adds age-gate - #9112
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bmuenzenmeyer
left a comment
There was a problem hiding this comment.
self-review
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9112 +/- ##
==========================================
+ Coverage 86.05% 86.12% +0.06%
==========================================
Files 86 86
Lines 6046 6046
Branches 358 357 -1
==========================================
+ Hits 5203 5207 +4
+ Misses 839 835 -4
Partials 4 4 ☔ View full report in Codecov by Harness. |
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow intended to enforce the repository’s PR “minimum open time” policy by keeping a required check failing until enough wall-clock time has elapsed (with a fast-track label bypass), including an hourly scheduled re-evaluation.
Changes:
- Introduces a new
Pull Request Age Gateworkflow usingbmuenzenmeyer/pr-age-gatewith a 48-hour minimum andfast-trackbypass. - Adds an hourly
scheduletrigger so the check can flip green without new commits. - Adds a new (currently empty) Changesets file.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/pull-request-age-gate.yml |
New workflow that creates/updates a PR check based on PR age with label-based bypass. |
.changeset/upset-walls-bet.md |
Adds a changeset file, but it currently contains no package metadata or description. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| --- | ||
| --- |
There was a problem hiding this comment.
We don't need a changeset, the check is non blocking
📦 Build Size ComparisonSummary
|
Description
Uses a custom GH action to prevent merger before our written policy elapses. There are carve-outs for labels such as
fast-trackwhich always pass this check (release blog posts, for example). Of course we can bypass it via admin merge tooNote
If approved, this action needs to be added to the allowlist to succeed.
Validation
Tested across https://github.com/bmuenzenmeyer/pr-age-gate/pulls?q=is%3Apr+is%3Aclosed
Related Issues
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.