From 7e54c7c9c023733785e92c0453c7e797882497a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samet=20=C3=87EL=C4=B0KBI=C3=87AK?= Date: Wed, 28 Oct 2026 12:04:26 +0300 Subject: [PATCH] chore: replace first-interaction bot with platform-aware templates The welcome workflow duplicated the issue and PR templates and its issue message only covered macOS/Linux, so it was stale after native Windows support. - Remove the welcome workflow and its pull_request_target permissions. - Ask bug reporters for OS, shell and the platform-specific install check. - Split the PR checklist into macOS/Linux and Windows commands. --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++---- .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- .github/workflows/welcome.yml | 33 ---------------------------- 3 files changed, 8 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/welcome.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 8de9729..ca5312c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -18,11 +18,13 @@ assignees: "" ## Environment - opencode version (`opencode --version`): -- OS: -- Shell: -- Install method: `./install.sh` / manual / other +- OS and version (macOS / Linux / Windows): +- Shell (bash, zsh, PowerShell 5.1, PowerShell 7): +- Install method: `./install.sh` / `install.ps1` / manual / other -## `./install.sh --check` output +## Install check output + +macOS/Linux: `./install.sh --check` — Windows: `.\install.ps1 -Check` ```text paste the output here diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 263a730..3028ca9 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,8 +5,8 @@ ## Checklist - [ ] `ruby scripts/validate.rb` passes -- [ ] `bash -n install.sh scripts/*.sh` passes -- [ ] `./scripts/smoke-install.sh` passes +- [ ] macOS/Linux: `bash -n install.sh scripts/*.sh` and `./scripts/smoke-install.sh` pass +- [ ] Windows: `.\scripts\smoke-install.ps1` passes (CI also runs it on `windows-latest`) - [ ] New frontmatter `description` values are quoted when they contain `: ` - [ ] `team.yaml` references resolve (`agent`, `skill`, profile stage ids) - [ ] README updated if a command, flag, agent or stage changed diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml deleted file mode 100644 index 5685cc7..0000000 --- a/.github/workflows/welcome.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: welcome - -on: - issues: - types: [opened] - pull_request_target: - types: [opened] - -permissions: - issues: write - pull-requests: write - -jobs: - welcome: - runs-on: ubuntu-latest - timeout-minutes: 5 - # Only greet first-time human contributors: skip the maintainer and any bot - # (Dependabot, github-actions[bot], ...), and only when the actor is the author. - if: >- - github.actor != github.repository_owner && - !endsWith(github.actor, '[bot]') && - ( - github.event_name == 'issues' && - github.event.issue.user.login == github.actor || - github.event_name == 'pull_request_target' && - github.event.pull_request.user.login == github.actor - ) - steps: - - uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - issue_message: "Thanks for your first issue. Please include your opencode version and the output of `./install.sh --check`." - pr_message: "Thanks for your first pull request. Run `ruby scripts/validate.rb` and `./scripts/smoke-install.sh` before review."