diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..abb3381 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,48 @@ +--- +name: Bug report +about: File a bug report to help us improve +title: "[Bug] " +labels: ["needs-triage"] +assignees: [] +--- + +**DevMap version** + +- Run: `devmap --version` + +**Command run** + +``` + +``` + +**Expected behavior** + + + +**Actual behavior** + + + +**Devmap doctor output** + +``` + +``` + +**Sample project / fixture** + +- Repository URL (jika private: `git remote -v`) +- Atau path lokal: `~/projects/some-app` + +**Steps to reproduce** + +1. ... +2. ... +3. ... + +**Additional context** + +- OS: ... +- Node version: ... +- AI provider: Groq / OpenRouter / custom diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..5884ec8 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,27 @@ +--- +name: Pull Request Template +about: Template untuk kontribusi ke DevMap +title: "" +labels: ["needs-review"] +--- + +**Summary perbaikan** + + + +**Issue terkait** + + + +**Checklist sebelum submit** + +- [ ] `devmap doctor` lolos (tanpa error) +- [ ] Test `pnpm test:cli` lolos (251 pass) +- [ ] New commands diupdate di `docs/commands.md` +- [ ] Tidak ada `console.log` di command files +- [ ] Registry terms sesuai standar (baca `docs/guide/05-signal-registry.md`) +- [ ] Code style match dengan `CONTRIBUTING.md` + +**Catatan tambahan** + + diff --git a/.github/workflows/pr-welcome.yml b/.github/workflows/pr-welcome.yml new file mode 100644 index 0000000..82e561c --- /dev/null +++ b/.github/workflows/pr-welcome.yml @@ -0,0 +1,46 @@ +name: PR Welcome + +on: + pull_request: + types: [opened] + +jobs: + welcome: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Add welcome comment + uses: actions/github-script@v7 + with: + script: | + const checklist = [ + '## ✅ Welcome ke DevMap!', + '', + 'Terima kasih sudah buat PR. Pastikan checklist ini terpenuhi sebelum review:', + '', + '- [ ] `devmap doctor` lolos (tanpa error)', + '- [ ] Test `pnpm test:cli` lolos (251 pass)', + '- [ ] New commands diupdate di `docs/commands.md`', + '- [ ] Tidak ada `console.log` di command files', + '- [ ] Registry terms sesuai standar (baca `docs/guide/05-signal-registry.md`)', + '- [ ] Code style match dengan `CONTRIBUTING.md`', + '', + '**CI akan jalan otomatis** pada setiap update. Kalau gagal, akan muncul link run di komentar ini.', + '', + 'Kalau DevMap membantu, tolong star ya: ', + '', + 'Terima kasih kontribusinya! 🙏' + ].join('\n'); + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: checklist + }); + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['needs-review'] + }); diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 950bef8..6126baf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,9 +44,6 @@ jobs: - name: Smoke test CLI run: node packages/cli/dist/index.js --version - - name: Upgrade npm for OIDC trusted publishing - run: npm install -g npm@latest - - name: Publish run: npm publish --access public working-directory: packages/cli diff --git a/docs/for-me-personal/PROGRESS.md b/docs/for-me-personal/PROGRESS.md index 951fdde..ec1e30b 100644 --- a/docs/for-me-personal/PROGRESS.md +++ b/docs/for-me-personal/PROGRESS.md @@ -1,6 +1,41 @@ # Progress DevMap -Terakhir diperbarui: 2026-08-30 +Terakhir diperbarui: 2026-09-04 + +## Update 2026-09-04 + +### Contributor-Friendly Infrastructure — branch `feat/contributor-friendly-infra` + +Menambahkan template, workflow, dan konfigurasi agar kontributor baru lebih +mudah mulai berkontribusi ke DevMap. + +1. `opencode.json` — model config untuk opencode: plan mode pakai + `9router/planner` (edit: deny, bash: ask), build mode pakai + `9router/executor`. MCP servers: Context7, Firecrawl, Exa. +2. `.github/ISSUE_TEMPLATE/bug_report.md` — template bug report dengan + fields: version, command run, expected/actual, doctor output, sample + project, steps, context. Label `needs-triage`. +3. `.github/pull_request_template.md` — PR template dengan summary, issue + link, checklist (doctor, test, docs, console.log, registry, code style). + Label `needs-review`. +4. `.github/workflows/pr-welcome.yml` — auto-comment checklist + label + `needs-review` saat PR dibuka. +5. 20 GitHub issues (#80–#99) untuk registry provider: Clerk, Auth0, + Passport, Lucia, Redis, Upstash, Memcached, LemonSqueezy, SendGrid, + Nodemailer, Mailgun, Postmark, Pusher, Ably, OneSignal, Novu, Algolia, + Meilisearch, Typesense, TogetherAI. Label `good first issue` + + `enhancement`. +6. Label `good first issue` ditambahkan ke issues #76–#79 (database + extractors: NoSQL, Drizzle, TypeORM, Mongoose). + +**Dihapus**: `.github/ISSUE_TEMPLATE/star_request.md` (jelek) + +`.github/workflows/star-nudge.yml` (dead code). + +**Files**: opencode.json, .github/ISSUE_TEMPLATE/bug_report.md, +.github/pull_request_template.md, .github/workflows/pr-welcome.yml, +docs/for-me-personal/PROGRESS.md. + +--- ## Update 2026-08-30 diff --git a/opencode.json b/opencode.json index a22d9fa..f174626 100644 --- a/opencode.json +++ b/opencode.json @@ -1,5 +1,17 @@ { "$schema": "https://opencode.ai/config.json", + "agent": { + "plan": { + "model": "9router/planner", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "build": { + "model": "9router/executor" + } + }, "mcp": { "context7": { "type": "remote",