From c690ee13d45fb40b5380b3b3112ca8e980512f72 Mon Sep 17 00:00:00 2001 From: Gabe O'Leary Date: Wed, 2 Sep 2026 14:20:20 -0700 Subject: [PATCH 1/2] ci: disable needs:compliance auto-close in the fork Gate the compliance-close scheduled job and the pr-standards check-compliance job on github.repository == 'anomalyco/opencode', matching how the other upstream-only workflows are handled here. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/compliance-close.yml | 2 ++ .github/workflows/pr-standards.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/compliance-close.yml b/.github/workflows/compliance-close.yml index a83824e5cf60..55c1b15ddf6e 100644 --- a/.github/workflows/compliance-close.yml +++ b/.github/workflows/compliance-close.yml @@ -13,6 +13,8 @@ permissions: jobs: close-non-compliant: + # Upstream-only: do not auto-close PRs/issues in the fork + if: github.repository == 'anomalyco/opencode' runs-on: ubuntu-latest steps: - name: Close non-compliant issues and PRs after 2 hours diff --git a/.github/workflows/pr-standards.yml b/.github/workflows/pr-standards.yml index 06838089d354..702e862eae57 100644 --- a/.github/workflows/pr-standards.yml +++ b/.github/workflows/pr-standards.yml @@ -153,6 +153,8 @@ jobs: console.log('PR meets all standards'); check-compliance: + # Upstream-only: this labels needs:compliance and warns of the 2-hour auto-close + if: github.repository == 'anomalyco/opencode' runs-on: ubuntu-latest permissions: contents: read From 11bbd007030ed4d5499fd92545b20f1ff4239800 Mon Sep 17 00:00:00 2001 From: Gabe O'Leary Date: Wed, 2 Sep 2026 14:48:04 -0700 Subject: [PATCH 2/2] ci: gate issue compliance labeling on upstream repo too duplicate-issues.yml also applies needs:compliance and posts the 2-hour closure warning. Gate both of its jobs the same way so no fork issue is promised a closure that compliance-close no longer performs. Issues are currently disabled in the fork, so this is for consistency. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/duplicate-issues.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/duplicate-issues.yml b/.github/workflows/duplicate-issues.yml index 3972247dafc6..a88767b4ead0 100644 --- a/.github/workflows/duplicate-issues.yml +++ b/.github/workflows/duplicate-issues.yml @@ -6,7 +6,8 @@ on: jobs: check-duplicates: - if: github.event.action == 'opened' + # Upstream-only: labels needs:compliance and warns of the 2-hour auto-close + if: github.repository == 'anomalyco/opencode' && github.event.action == 'opened' runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read @@ -140,7 +141,8 @@ jobs: Remember: post at most ONE comment combining all findings. If everything is fine, post nothing." recheck-compliance: - if: github.event.action == 'edited' && contains(github.event.issue.labels.*.name, 'needs:compliance') + # Upstream-only: see check-duplicates + if: github.repository == 'anomalyco/opencode' && github.event.action == 'edited' && contains(github.event.issue.labels.*.name, 'needs:compliance') runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read