Skip to content

Commit 63484ac

Browse files
sjarmakclaude
andcommitted
feat: make mine-tasks codehost-agnostic with git-only fallback
The skill now works with any git host: GitHub, GitLab, Bitbucket, Azure DevOps, Gitea/Forgejo, self-hosted instances, or plain local repos with no remote API at all. Key changes: - Add Host Adapter Reference section with per-host CLI/API commands for: listing merged MRs, getting diffs, getting metadata, getting linked issues, clone URLs + auth, repo validation, contributor discovery - Host auto-detection from URL patterns (github.com, gitlab.com, bitbucket.org, dev.azure.com, self-hosted). Prompts for platform type when ambiguous. - git-only fallback mode: mines from git log (merge commits + commit messages), uses git diff for patches, git log --format='%an' for contributors. Works with zero API access. - Clone URLs and auth patterns are per-host: GitHub: x-access-token, GitLab: oauth2, Bitbucket: x-token-auth, Azure: user:token. All use generic "repo_token" secret name. - Contributor discovery: git log frequency as primary (universal) method, host-specific reviewer APIs as enrichment - Mixed-host support: repos from different hosts in the same eval, each gets its own adapter and auth - Removed GitHub Copilot as MCP provider option (host-specific), kept Sourcegraph (works with any host) + Custom + Placeholder - Updated terminology: "PR" → "MR/PR" throughout, host-neutral language in summaries and output Also regenerates script registry and index to fix pre-existing staleness. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f11742f commit 63484ac

File tree

3 files changed

+418
-127
lines changed

3 files changed

+418
-127
lines changed

docs/ops/SCRIPT_INDEX.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ Generated from `scripts/registry.json` by `scripts/generate_script_index.py`.
176176
- `scripts/backfill_size_metadata.py` [one_off] - Historical one-off script: backfill size metadata.
177177
- `scripts/backfill_triage_from_manifest.py` [one_off] - Historical one-off script: backfill triage from manifest.
178178
- `scripts/check_harness_readiness.py` - Utility script for check harness readiness.
179+
- `scripts/collect_repo_cloc.py` - Utility script for collect repo cloc.
179180
- `scripts/compare_contextbench_results.py` - Utility script for compare contextbench results.
180181
- `scripts/compare_old_new_ground_truth.py` - Utility script for compare old new ground truth.
181182
- `scripts/compute_analysis_ir_metrics.py` - Utility script for compute analysis ir metrics.

scripts/registry.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@
210210
"language": "python",
211211
"summary": "Pre-run infrastructure readiness checker (tokens, Docker, disk, Harbor CLI)."
212212
},
213+
{
214+
"name": "collect_repo_cloc.py",
215+
"path": "scripts/collect_repo_cloc.py",
216+
"category": "misc",
217+
"status": "maintained",
218+
"language": "python",
219+
"summary": "Utility script for collect repo cloc."
220+
},
213221
{
214222
"name": "compare_configs.py",
215223
"path": "scripts/compare_configs.py",
@@ -1667,7 +1675,7 @@
16671675
"infra_mirrors": 20,
16681676
"library_helpers": 7,
16691677
"migration": 4,
1670-
"misc": 90,
1678+
"misc": 91,
16711679
"qa_quality": 10,
16721680
"submission_reporting": 7,
16731681
"task_creation_selection": 13,

0 commit comments

Comments
 (0)