From 812d34abd0d4f3632ebd7a3fec3b6d940df43b2a Mon Sep 17 00:00:00 2001 From: tachikochoko Date: Mon, 4 May 2026 01:23:37 +0800 Subject: [PATCH 1/2] chore: fix dependabot go module directory refs #208 Co-Authored-By: Codex --- .github/dependabot.yml | 2 +- docs/dependabot-update-policy.md | 4 ++-- plans/github-actions-enhancements.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ec5040bc..a9eaf73d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,7 @@ version: 2 updates: - package-ecosystem: gomod - directory: /backend + directory: /services/api schedule: interval: weekly day: monday diff --git a/docs/dependabot-update-policy.md b/docs/dependabot-update-policy.md index b766e738..13b3a8f9 100644 --- a/docs/dependabot-update-policy.md +++ b/docs/dependabot-update-policy.md @@ -18,7 +18,7 @@ Do not change these entries to a non-existent `pnpm` ecosystem name. Version updates target `develop` and run on Monday morning in `Asia/Taipei`: -- `/backend`: 09:00 +- `/services/api`: 09:00 - `/apps/dashboard`: 09:30 - `/apps/extension`: 10:00 @@ -29,7 +29,7 @@ queue when many packages release close together. Dependency updates are grouped by review shape: -- Go modules in `/backend` are grouped into `backend-go-deps`. +- Go modules in `/services/api` are grouped into `backend-go-deps`. - Dashboard pnpm updates are split into production and development groups. - Tachimint pnpm updates are split into production and development groups. diff --git a/plans/github-actions-enhancements.md b/plans/github-actions-enhancements.md index 85b1c49b..782073c8 100644 --- a/plans/github-actions-enhancements.md +++ b/plans/github-actions-enhancements.md @@ -38,12 +38,12 @@ repo 目前已有 9 個 `.github/workflows` 檔案,其中 8 個是 GitHub Acti ### Dependabot Go module 路徑 -目前 `.github/dependabot.yml` 與 `docs/dependabot-update-policy.md` 還寫 Go module directory 為 `/backend`,但 repo 現況是: +PR A 修正前,`.github/dependabot.yml` 與 `docs/dependabot-update-policy.md` 還寫 Go module directory 為 `/backend`,但 repo 現況是: - Go module:`services/api/go.mod` - 舊路徑 `backend/` 不存在 -這會讓 Go Dependabot update 無法正確掃描。這不是新增 workflow,而是應先修正的既有 automation drift。 +這會讓 Go Dependabot update 無法正確掃描。這不是新增 workflow,而是應先修正的既有 automation drift。PR A 完成後,這段可視為已處理的背景紀錄。 建議先開一個小 PR: From fdb64573953d322438733a2a66121767bfc0782f Mon Sep 17 00:00:00 2001 From: tachikochoko Date: Mon, 4 May 2026 01:53:28 +0800 Subject: [PATCH 2/2] docs: mark dependabot directory fix complete refs #208 Co-Authored-By: Codex --- plans/github-actions-enhancements.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plans/github-actions-enhancements.md b/plans/github-actions-enhancements.md index 782073c8..b6a19663 100644 --- a/plans/github-actions-enhancements.md +++ b/plans/github-actions-enhancements.md @@ -45,16 +45,16 @@ PR A 修正前,`.github/dependabot.yml` 與 `docs/dependabot-update-policy.md` 這會讓 Go Dependabot update 無法正確掃描。這不是新增 workflow,而是應先修正的既有 automation drift。PR A 完成後,這段可視為已處理的背景紀錄。 -建議先開一個小 PR: +PR A 已處理: - `.github/dependabot.yml`:把 gomod directory 從 `/backend` 改成 `/services/api` - `docs/dependabot-update-policy.md`:同步把 `/backend` 改成 `/services/api` ## 推薦實作順序 -### 1. 修正 Dependabot Go directory drift +### 1. 修正 Dependabot Go directory drift(已完成於 PR A) -**優先級:P0** +**優先級:P0 / completed** 目的:恢復 Go module dependency update。 @@ -63,7 +63,7 @@ PR A 修正前,`.github/dependabot.yml` 與 `docs/dependabot-update-policy.md` - `.github/dependabot.yml` - `docs/dependabot-update-policy.md` -驗收方式: +完成狀態: - `dependabot.yml` syntax 仍合法。 - 文件中的 Go module path 與 `services/api/go.mod` 一致。 @@ -277,7 +277,7 @@ Repo 內既有設計文件(目前存在於 `develop`;若後續搬移或改 ## 建議拆 PR -### PR A:Dependabot directory drift +### PR A:Dependabot directory drift(已完成於本 PR) 目的:恢復 Go Dependabot。