chore: skip PR standards checks for PRs created before Feb 18 2026 6PM EST (#14208)
This commit is contained in:
16
.github/workflows/pr-standards.yml
vendored
16
.github/workflows/pr-standards.yml
vendored
@@ -18,6 +18,14 @@ jobs:
|
|||||||
const pr = context.payload.pull_request;
|
const pr = context.payload.pull_request;
|
||||||
const login = pr.user.login;
|
const login = pr.user.login;
|
||||||
|
|
||||||
|
// Skip PRs older than Feb 18, 2026 at 6PM EST (Feb 19, 2026 00:00 UTC)
|
||||||
|
const cutoff = new Date('2026-02-19T00:00:00Z');
|
||||||
|
const prCreated = new Date(pr.created_at);
|
||||||
|
if (prCreated < cutoff) {
|
||||||
|
console.log(`Skipping: PR #${pr.number} was created before cutoff (${prCreated.toISOString()})`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Check if author is a team member or bot
|
// Check if author is a team member or bot
|
||||||
if (login === 'opencode-agent[bot]') return;
|
if (login === 'opencode-agent[bot]') return;
|
||||||
const { data: file } = await github.rest.repos.getContent({
|
const { data: file } = await github.rest.repos.getContent({
|
||||||
@@ -157,6 +165,14 @@ jobs:
|
|||||||
const pr = context.payload.pull_request;
|
const pr = context.payload.pull_request;
|
||||||
const login = pr.user.login;
|
const login = pr.user.login;
|
||||||
|
|
||||||
|
// Skip PRs older than Feb 18, 2026 at 6PM EST (Feb 19, 2026 00:00 UTC)
|
||||||
|
const cutoff = new Date('2026-02-19T00:00:00Z');
|
||||||
|
const prCreated = new Date(pr.created_at);
|
||||||
|
if (prCreated < cutoff) {
|
||||||
|
console.log(`Skipping: PR #${pr.number} was created before cutoff (${prCreated.toISOString()})`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Check if author is a team member or bot
|
// Check if author is a team member or bot
|
||||||
if (login === 'opencode-agent[bot]') return;
|
if (login === 'opencode-agent[bot]') return;
|
||||||
const { data: file } = await github.rest.repos.getContent({
|
const { data: file } = await github.rest.repos.getContent({
|
||||||
|
|||||||
Reference in New Issue
Block a user