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/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 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