diff options
author | Jordan Levin <31293855+jaylevin@users.noreply.github.com> | 2021-09-23 09:33:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 00:33:52 +0800 |
commit | b9a3626cad505b1dccd66a0b023263ef59134430 (patch) | |
tree | 7add86378833ea4ed2a85279ea746c9d0306e7c1 /.github/workflows | |
parent | b3eb33be0fa343522e1f3ea6397534b40e8dde37 (diff) |
api: add `GET /api/v1/{owner}/{repo}/commits` endpoint (#6574)
This pull request targets issue #6573.
It provides a new API endpoint: `/api/v1/repos/{org}/{repo}/commits?pageSize=<int>` with a default page size of 30 commits (the same as the UI).
This implementation currently only focuses on the main/master branch of the repository, and does not provide the ability to return commit history for other branches.
- Note: Since the logic for converting a git.Commit to api.Commit had to be used in `GetAllCommits` and `GetSingleCommit`, I decided to pull the code out into a helper function, ` gitCommitToAPICommit(commit, context)`.
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions