mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- Add new `Compare` struct to represent comparison between two commits - Introduce new API endpoint `/compare/*` to get commit comparison information - Create new file `repo_compare.go` with the `Compare` struct definition - Add new file `compare.go` in `routers/api/v1/repo` to handle comparison logic - Add new file `compare.go` in `routers/common` to define `CompareInfo` struct - Refactor `ParseCompareInfo` function to use `common.CompareInfo` struct - Update Swagger documentation to include the new API endpoint for commit comparison - Remove duplicate `CompareInfo` struct from `routers/web/repo/compare.go` - Adjust base path in Swagger template to be relative (`/api/v1`) GitHub API https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits --------- Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> |
10 months ago | |
---|---|---|
.. | ||
action.go | 11 months ago | |
avatar.go | 1 year ago | |
blob.go | 1 year ago | |
branch.go | 1 year ago | |
collaborators.go | 12 months ago | |
commits.go | 1 year ago | |
compare.go | 10 months ago | |
file.go | 11 months ago | |
fork.go | 12 months ago | |
git_hook.go | 1 year ago | |
git_ref.go | 1 year ago | |
hook.go | 1 year ago | |
hook_test.go | 1 year ago | |
issue.go | 11 months ago | |
issue_attachment.go | 11 months ago | |
issue_comment.go | 12 months ago | |
issue_comment_attachment.go | 12 months ago | |
issue_dependency.go | 11 months ago | |
issue_label.go | 1 year ago | |
issue_pin.go | 11 months ago | |
issue_reaction.go | 12 months ago | |
issue_stopwatch.go | 1 year ago | |
issue_subscription.go | 1 year ago | |
issue_tracked_time.go | 11 months ago | |
key.go | 1 year ago | |
label.go | 1 year ago | |
language.go | 1 year ago | |
main_test.go | 1 year ago | |
migrate.go | 1 year ago | |
milestone.go | 12 months ago | |
mirror.go | 1 year ago | |
notes.go | 1 year ago | |
patch.go | 1 year ago | |
pull.go | 11 months ago | |
pull_review.go | 11 months ago | |
release.go | 12 months ago | |
release_attachment.go | 12 months ago | |
release_tags.go | 1 year ago | |
repo.go | 11 months ago | |
repo_test.go | 1 year ago | |
runners.go | 1 year ago | |
star.go | 1 year ago | |
status.go | 12 months ago | |
subscriber.go | 1 year ago | |
tag.go | 1 year ago | |
teams.go | 1 year ago | |
topic.go | 11 months ago | |
transfer.go | 12 months ago | |
tree.go | 1 year ago | |
wiki.go | 1 year ago |