Skip to content

feat(gitter): New endpoint for commit history and patch extraction - #6009

Open
Ly-Joey wants to merge 2 commits into
google:masterfrom
Ly-Joey:feat-gitter-commits
Open

feat(gitter): New endpoint for commit history and patch extraction#6009
Ly-Joey wants to merge 2 commits into
google:masterfrom
Ly-Joey:feat-gitter-commits

Conversation

@Ly-Joey

@Ly-Joey Ly-Joey commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Adds /commit-diffs endpoint to return structured commit data (SHA, timestamp, message, diff patches, and modified files) relative to a target branch and last sync point.

The last-sync reference can be a commit SHA or timestamp.
When both are provided, the commit hash is prioritized, with the timestamp acting as a fallback if the hash is invalid (e.g., from a git commit --amend or rebase).

@Ly-Joey Ly-Joey changed the title feat(gitter): New /commit-diffs endpoint for commit history and patch extraction feat(gitter): New endpoint for commit history and patch extraction Sep 10, 2026
- Truncate diff patch if too big (exceeds 5MB)
- Optional path filtering if we want to exclude e.g doc paths
- Optimize commit log parsing
@Ly-Joey
Ly-Joey force-pushed the feat-gitter-commits branch from 8627e0d to a4754b0 Compare September 11, 2026 05:58
@Ly-Joey
Ly-Joey marked this pull request as ready for review September 11, 2026 06:08
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