forgejo-sdk/forgejo
appleboy e9585a460d feat: implement commit comparison feature in Gitea client (#659)
See the API: https://github.com/go-gitea/gitea/pull/30349

- Add a new file `repo_compare.go` with package `gitea` and `Compare` struct
- Implement `CompareCommits` method in `Client` struct in `repo_compare.go`
- Add `version1_22_0` constant in `version.go`

Signed-off-by: appleboy <appleboy.tw@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/659
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: appleboy <appleboy.tw@gmail.com>
Co-committed-by: appleboy <appleboy.tw@gmail.com>
2024-05-03 17:34:26 +02:00
..
admin_cron.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
admin_org.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
admin_repo.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
admin_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
admin_user.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
agent.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
agent_windows.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
attachment.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
client.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
client_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
doc.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
fork.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
git_blob.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
git_hook.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
go.mod chore: update Go module dependencies to latest versions (#658) 2024-05-03 17:30:19 +02:00
go.sum chore: update Go module dependencies to latest versions (#658) 2024-05-03 17:30:19 +02:00
helper.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
hook.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
hook_validate.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
hook_validate_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
httpsign.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_comment.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_comment_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_label.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_label_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_milestone.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_milestone_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_reaction.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_stopwatch.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_subscription.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_subscription_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_template.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
issue_tracked_time.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
list_options.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
main_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
notifications.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
notifications_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
oauth2.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
oauth2_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
org.go Fix typo in visibilty error (#653) 2024-05-03 17:28:03 +02:00
org_action.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
org_member.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
org_member_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
org_team.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
org_team_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
org_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
package.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
package_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
pull.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
pull_review.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
pull_review_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
pull_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
release.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
release_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_branch.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_branch_protection.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_branch_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_collaborator.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_collaborator_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_commit.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_commit_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_compare.go feat: implement commit comparison feature in Gitea client (#659) 2024-05-03 17:34:26 +02:00
repo_file.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_file_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_key.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_migrate.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_mirror.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_refs.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_stars.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_stars_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_tag.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_tag_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_team.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_team_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_template.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_template_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_topics.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_topics_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_transfer.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_transfer_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_tree.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_watch.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
repo_watch_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
secret.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
settings.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
settings_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
status.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
status_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_app.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_email.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_follow.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_gpgkey.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_key.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_search.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_settings.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_settings_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00
user_test.go Make final corrections before fork is finalized (#3) 2024-05-03 14:54:54 +00:00
version.go feat: implement commit comparison feature in Gitea client (#659) 2024-05-03 17:34:26 +02:00
version_test.go feat: fork Gitea SDK (#1) 2024-05-03 16:35:08 +02:00