From b38e546e9079567a34b071f377e26275965e2e2c Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 24 Apr 2026 13:57:55 +0200 Subject: [PATCH] chore: label weekend issue closures --- .github/workflows/issue-gate.yml | 16 ++++++++++++++++ CONTRIBUTING.md | 2 ++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/issue-gate.yml b/.github/workflows/issue-gate.yml index 62663940..e6491b99 100644 --- a/.github/workflows/issue-gate.yml +++ b/.github/workflows/issue-gate.yml @@ -19,6 +19,8 @@ jobs: const VALID_CAPABILITIES = new Set(['issue', 'pr']); const issueAuthor = context.payload.issue.user.login; const defaultBranch = context.payload.repository.default_branch; + const issueCreatedDay = new Date(context.payload.issue.created_at).getUTCDay(); + const isFridayThroughSunday = issueCreatedDay === 5 || issueCreatedDay === 6 || issueCreatedDay === 0; if (issueAuthor.endsWith('[bot]') || issueAuthor === 'dependabot[bot]') { console.log(`Skipping bot: ${issueAuthor}`); @@ -96,6 +98,11 @@ jobs: const message = [ 'This issue was auto-closed. All issues from new contributors are auto-closed by default.', + ...(isFridayThroughSunday + ? [ + 'Issues submitted Friday through Sunday are not reviewed. If this is urgent, ask on Discord: https://discord.com/invite/3cU7Bz4UPx', + ] + : []), '', `Maintainers review auto-closed issues daily and reopen worthwhile ones. Issues that do not meet the quality bar in [CONTRIBUTING.md](https://github.com/${context.repo.owner}/${context.repo.repo}/blob/${defaultBranch}/CONTRIBUTING.md) will not be reopened or receive a reply.`, '', @@ -111,6 +118,15 @@ jobs: body: message, }); + if (isFridayThroughSunday) { + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['closed-because-weekend'], + }); + } + await github.rest.issues.update({ owner: context.repo.owner, repo: context.repo.repo, diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 23168b6b..3cfff420 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,6 +14,8 @@ If you use an agent, run it from the `pi-mono` root directory so it picks up `AG All issues and PRs from new contributors are auto-closed by default. +Issues submitted Friday through Sunday are not reviewed. If something is urgent, ask on Discord: https://discord.com/invite/3cU7Bz4UPx + Maintainers review auto-closed issues daily and reopen worthwhile ones. Issues that do not meet the quality bar below will not be reopened or receive a reply. Approval happens through maintainer replies on issues: