Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add repository-wide commit search across branches

Aperta
#3,197 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, go
Ambito
api, devtools

Direzione di ricerca

Inizia leggendo le implementazioni esistenti degli strumenti search_commits e list_commits e le relative chiamate all’API GitHub. Verifica se l’API supporta la ricerca di commit nell’intero repository con filtri per autore e data, quindi individua il design appropriato dello strumento e i test. Il lavoro è completato quando vengono restituiti i commit corrispondenti tra branch non predefiniti, con paginazione e metadati SHA o ref utili.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement request ai review
Describe the feature or problem you’d like to solve

The current search_commits tool searches commit messages on the repository's default branch only. This makes it difficult to reliably discover work performed by a developer on feature, bugfix, or other non-default branches that have not yet been merged.

For example, a developer may make several commits on feature/worklog-ai during the day while the repository's default branch is development. Those commits will not be returned by search_commits until they are merged into the default branch.

Using list_commits does allow specifying a branch through the sha parameter, but discovering a user's activity across an entire repository would then require listing branches and querying commits for each branch individually. This becomes inefficient for repositories with a large number of branches and also creates significant duplication because branches frequently share commit history.

A repository-wide way to find commits by author and date, independent of the branch on which they currently exist, would make the MCP server much more useful for developer activity, worklog, analytics, and code-agent workflows.

Proposed solution

Add a tool or extend an existing tool to support repository-wide commit discovery across branches.

For example:

search_repository_commits

Parameters could include:

  • owner — Repository owner
  • repo — Repository name
  • author — GitHub username or email
  • since — Start of the time range in ISO 8601 format
  • until — End of the time range in ISO 8601 format
  • page — Pagination page
  • perPage — Results per page

The tool should return commits belonging to the specified repository and matching the author/date filters regardless of whether the commits are currently reachable from the default branch.

Ideally, results should include the commit SHA and enough metadata to identify the relevant branch/ref when possible.

The implementation should avoid requiring clients to enumerate every repository branch and call list_commits separately for each branch.

An alternative would be to extend search_commits with an explicit repository-wide/non-default-branch mode if that fits the existing tool design better.

Example prompts or workflows (for tools/toolsets only)
  1. "Show me everything I committed to owner/repository today, including commits on feature branches that haven't been merged yet."

  2. "Find all commits by username in owner/repository between August 31 and September 1, regardless of which branch they were made on."

  3. "Generate a daily worklog for username based on all commits made in this repository today, including unmerged feature branches."

  4. "Find all work performed by username in this repository during the last 7 days, including commits that are not present on the default branch."

  5. "List the commits made by username in this repository today and group them by branch or related work."

Additional context

This is particularly useful for developer productivity and worklog workflows.

A common development workflow is for developers to work on feature or bugfix branches and merge them into main/development later. A daily activity query should not require those commits to already be merged.

The current search_commits behavior is documented as searching commit messages on the default branch only. list_commits can target a specific branch using sha, but using it to discover all user activity requires enumerating branches, which does not scale well for repositories with many branches.

The desired behavior is therefore a repository-level activity query that can efficiently identify commits by author and time range without requiring clients to know the relevant branches beforehand.

Lingua principale
Go
Stelle
33.1k
Fork
5k
Merge medio
2g 1h
PR unite (30g)
25

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/github-mcp-server

Tutte le issue di github/github-mcp-server

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.