From 28e13d9fd01cde401f8891ee1cc85fa7e3715b24 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" <219766164+opencode-agent[bot]@users.noreply.github.com> Date: Wed, 30 Sep 2026 21:39:52 -0500 Subject: [PATCH] fix(ci): extend issue and PR compliance grace to 72 hours (#52415) Co-authored-by: rekram1-node --- .github/workflows/compliance-close.yml | 14 +++++++------- .github/workflows/duplicate-issues.yml | 4 ++-- .github/workflows/pr-standards.yml | 2 +- CONTRIBUTING.md | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/compliance-close.yml b/.github/workflows/compliance-close.yml index a83824e5cf6..cc09925c5b7 100644 --- a/.github/workflows/compliance-close.yml +++ b/.github/workflows/compliance-close.yml @@ -15,7 +15,7 @@ jobs: close-non-compliant: runs-on: ubuntu-latest steps: - - name: Close non-compliant issues and PRs after 2 hours + - name: Close non-compliant issues and PRs after 72 hours uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0 with: script: | @@ -33,7 +33,7 @@ jobs: } const now = Date.now(); - const twoHours = 2 * 60 * 60 * 1000; + const seventyTwoHours = 72 * 60 * 60 * 1000; const orgMemberAssociations = new Set(['OWNER', 'MEMBER']); const agentLogin = 'opencode-agent[bot]'; const { data: file } = await github.rest.repos.getContent({ @@ -87,14 +87,14 @@ jobs: if (!complianceComment) continue; const commentAge = now - new Date(complianceComment.created_at).getTime(); - if (commentAge < twoHours) { - core.info(`${kind} #${item.number} still within 2-hour window (${Math.round(commentAge / 60000)}m elapsed)`); + if (commentAge < seventyTwoHours) { + core.info(`${kind} #${item.number} still within 72-hour window (${Math.round(commentAge / 60000)}m elapsed)`); continue; } const closeMessage = isPR - ? 'This pull request has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window.\n\nFeel free to open a new pull request that follows our guidelines.' - : 'This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window.\n\nFeel free to open a new issue that follows our issue templates.'; + ? 'This pull request has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 72-hour window.\n\nFeel free to open a new pull request that follows our guidelines.' + : 'This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 72-hour window.\n\nFeel free to open a new issue that follows our issue templates.'; await github.rest.issues.createComment({ owner: context.repo.owner, @@ -129,5 +129,5 @@ jobs: }); } - core.info(`Closed non-compliant ${kind} #${item.number} after 2-hour window`); + core.info(`Closed non-compliant ${kind} #${item.number} after 72-hour window`); } diff --git a/.github/workflows/duplicate-issues.yml b/.github/workflows/duplicate-issues.yml index 4254cca6449..be193dc7fcc 100644 --- a/.github/workflows/duplicate-issues.yml +++ b/.github/workflows/duplicate-issues.yml @@ -107,7 +107,7 @@ jobs: If the issue is NOT compliant and the author association is not OWNER or MEMBER, start the comment with: - Then explain what needs to be fixed and that they have 2 hours to edit the issue before it is automatically closed. Also add the label needs:compliance to the issue using: gh issue edit ${{ github.event.issue.number }} --add-label needs:compliance + Then explain what needs to be fixed and that they have 72 hours to edit the issue before it is automatically closed. Also add the label needs:compliance to the issue using: gh issue edit ${{ github.event.issue.number }} --add-label needs:compliance If duplicates were found, include a section about potential duplicates with links. @@ -124,7 +124,7 @@ jobs: **What needs to be fixed:** - [specific reasons] - Please edit this issue to address the above within **2 hours**, or it will be automatically closed. + Please edit this issue to address the above within **72 hours**, or it will be automatically closed. [If duplicates found, add:] --- diff --git a/.github/workflows/pr-standards.yml b/.github/workflows/pr-standards.yml index 06838089d35..2984344e027 100644 --- a/.github/workflows/pr-standards.yml +++ b/.github/workflows/pr-standards.yml @@ -298,7 +298,7 @@ jobs: **What needs to be fixed:** ${issues.map(i => `- ${i}`).join('\n')} - Please edit this PR description to address the above within **2 hours**, or it will be automatically closed. + Please edit this PR description to address the above within **72 hours**, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know.`; diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a9c545efb89..a53e2dd0b28 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -260,7 +260,7 @@ All issues **must** use one of our issue templates: - **Feature request** — for suggesting enhancements (requires verification checkbox and description) - **Question** — for asking questions (requires the question) -Blank issues are not allowed. When a new issue is opened, an automated check verifies that it follows a template and meets our contributing guidelines. If an issue doesn't meet the requirements, you'll receive a comment explaining what needs to be fixed and have **2 hours** to edit the issue. After that, it will be automatically closed. +Blank issues are not allowed. When a new issue is opened, an automated check verifies that it follows a template and meets our contributing guidelines. If an issue doesn't meet the requirements, you'll receive a comment explaining what needs to be fixed and have **72 hours** to edit the issue. After that, it will be automatically closed. Issues may be flagged for: