feat(cursor-origin): List and compare commits - #140
Merged
Merged
Conversation
wedamija
force-pushed
the
danf/origin-provider-commits
branch
2 times, most recently
from
September 24, 2026 18:28
e01ee47 to
86d58a5
Compare
wedamija
force-pushed
the
danf/origin-provider-commits
branch
3 times, most recently
from
September 24, 2026 18:43
f26d9d6 to
8667f58
Compare
Add `get_commits` and `compare_commits`. Origin's comparison only returns a commit count, so `compare_commits` cannot return the commits themselves. Changed files are returned separately and paginated.
With no pagination, compare_commits returned Origin's default first page of 30 files. Read pages of 100, up to the 300 files GitHub's compare returns.
wedamija
force-pushed
the
danf/origin-provider-commits
branch
from
September 24, 2026 18:55
6c72a60 to
e1e9be4
Compare
A caller's pagination reads one page; without it, up to three pages of 100 are read. The next cursor is returned in both cases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
get_commitsandcompare_commits. Origin's comparison only returns a commit count, socompare_commitscannot return the commits themselves. Changed files are returned separately and paginated.Stacked on #135.