-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API method to list all commits of a repository #6408
Merged
Merged
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
d4273db
Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits)
Mikescher 3c3a6de
Merge branch 'master' into master
Mikescher 69d6092
Merge branch 'master' into master
Mikescher 20f9caf
Merge branch 'master' into master
Mikescher 6a2fe66
Fixed failing drone build
Mikescher 322d7ae
Merge branch 'master' into master
Mikescher 55915ce
Merge branch 'master' into master
Mikescher f69b130
Merge branch 'master' into master
Mikescher 35facc2
Merge branch 'master' into master
Mikescher 413b290
Implemented requested changes (PR reviews)
Mikescher ab8afc4
gofmt
Mikescher 9a3e66f
Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos…
Mikescher 30e3006
Removed unnecessary line
Mikescher d306b00
better error message when git repo is empty
Mikescher 3760625
make generate-swagger
Mikescher bf8315c
fixed removed return
Mikescher f0aadfe
Update routers/api/v1/repo/commits.go
Mikescher 6a05550
Update routers/api/v1/repo/commits.go
Mikescher 9cb32d6
go fmt
Mikescher 97f2e09
Merge branch 'master' into master
lunny ec1f21a
Merge branch 'master' into master
sapk b5c9435
Refactored common code into ToCommit()
Mikescher 0f9417f
Merge branch 'master' into master
Mikescher 0852fa5
made toCommit not exported
Mikescher e91dbbd
added check for userCache == nil
Mikescher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a sub-function similar to
gitea/routers/api/v1/convert/convert.go
Line 50 in 37b6ee1
Furthermore, maybe de-duplicate with some parts with GetSingleCommit func.