Skip to content

fix(mcp): cleanup adaylari gercek+prunable, protection_status ruleset salt okunur, audit_log repoId/ad - #136

Merged
syhgorath merged 1 commit into
mainfrom
fix/mcp-cleanup-audit-ruleset
Nov 21, 2026
Merged

syhgorath merged 1 commit into
mainfrom
fix/mcp-cleanup-audit-ruleset

Conversation

@syhgorath

Copy link
Copy Markdown
Owner

Ne

  • gitarc_cleanup_candidates: aday = Prunable (arayüzdeki 🧹 ile aynı tek kural) ve dal gerçekten var. Yalnızca PR geçmişinden gelen adlar aday değil (historyOnlyIgnored); uzun ömürlü dallar (release/*) hariç; aday yoksa count: 0.
  • gitarc_protection_status: Ruleset'li depoda dala uygulanan kurallar salt okunur okunur (source: ruleset); okunamazsa/korumasızsa current: null + reason.
  • gitarc_audit_log: her kayıt repoId + repoName; varsayılan yalnızca seçili proje, repoId="all" ile tümü; projesi bilinmeyen eski kayıtlar yalnızca all ile "bilinmiyor".

Neden

Araç 13 adayın 10'unu hiçbir yerde olmayan adlardan üretiyor ve release/0.10.0 için git branch -D öneriyordu; Ruleset'li depoda koruma ayrıntısı boştu; günlük kayıtlarında proje belli değildi.

Doğrulama

  • Yeni testler: internal/mcp/cleanup_protection_test.go, internal/gitengine/audit_ruleset_test.go (cleanup testi eski kodda düşüyor).
  • go vet ./... && go test -count=1 -race -cover ./... && go build -o gitarc .; node --check; node --test tests/js/.

@syhgorath
syhgorath merged commit 0381041 into main Nov 21, 2026
1 check passed
@syhgorath
syhgorath deleted the fix/mcp-cleanup-audit-ruleset branch November 21, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant