go-sdk/gitea
appleboy a991e370c5 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-04-17 05:47:25 +00:00
..
admin_cron.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_org.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_repo.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
admin_test.go Relax TestAdminCronTasks (#591) 2022-05-15 06:22:02 +08:00
admin_user.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
agent.go use build tag to support darwin again (#600) 2022-08-31 08:41:39 +08:00
agent_windows.go use build tag to support darwin again (#600) 2022-08-31 08:41:39 +08:00
attachment.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
client.go Add Link header parsing in response (#638) 2023-12-04 14:50:48 +00:00
client_test.go Add Link header parsing in response (#638) 2023-12-04 14:50:48 +00:00
doc.go Fix broken CI (#602) 2022-09-16 01:47:16 +08:00
fork.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
git_blob.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
git_hook.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
go.mod chore: update Go module dependencies to latest versions (#658) 2024-04-16 08:15:01 +00:00
go.sum chore: update Go module dependencies to latest versions (#658) 2024-04-16 08:15:01 +00:00
helper.go Add Helper for Optional Values (#448) 2020-11-13 05:27:28 +08:00
hook.go Add support for user hooks (#644) 2024-01-25 16:04:00 +00:00
hook_validate.go Add webhook verification funcs (#580) 2022-04-27 02:59:02 +08:00
hook_validate_test.go Add webhook verification funcs (#580) 2022-04-27 02:59:02 +08:00
httpsign.go Add support for http signatures (#553) 2022-07-13 00:45:08 +08:00
issue.go Add `DeleteIssue()` (#598) 2022-09-16 05:45:01 +08:00
issue_comment.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_comment_test.go Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
issue_label.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_label_test.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
issue_milestone.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
issue_milestone_test.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
issue_reaction.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_stopwatch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_subscription.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
issue_subscription_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
issue_template.go Add `GetIssueTemplates()` (#603) 2023-04-20 00:19:26 +08:00
issue_test.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
issue_tracked_time.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
list_options.go ListOptions.setDefaults(): remove artificial and buggy pagination limits (#573) 2022-04-27 03:07:37 +08:00
main_test.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
notifications.go Add response to `ReadRepoNotifications` (#590) 2022-05-15 23:47:38 +08:00
notifications_test.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
oauth2.go feat(oauth2): confidential_client handling (#625) 2023-07-15 02:55:06 +00:00
oauth2_test.go feat(oauth2): confidential_client handling (#625) 2023-07-15 02:55:06 +00:00
org.go Fix typo in visibilty error (#653) 2024-02-28 00:12:39 +00:00
org_action.go feat: Add API routes to list org secrets (#629) 2023-08-15 15:15:48 +00:00
org_member.go Add method to get user organization permissions (#594) 2022-07-20 10:57:09 +08:00
org_member_test.go More integration test fixes (#604) 2022-09-16 02:26:31 +08:00
org_team.go feat: add new constants for repository actions (#643) 2023-12-17 04:36:39 +00:00
org_team_test.go More integration test fixes (#604) 2022-09-16 02:26:31 +08:00
org_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
package.go fix: updated repository field in Package struct (#647) 2024-01-29 05:38:16 +00:00
package_test.go Access the details of packages (#620) 2023-07-15 02:59:55 +00:00
pull.go Add missing MergePullRequestOption parameters for head_commit_id and merge_when_checks_succeed (#624) 2023-07-15 02:53:03 +00:00
pull_review.go Allow PR review with comments only (#570) 2022-05-02 03:09:34 +08:00
pull_review_test.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
pull_test.go Add `ListPullRequestFiles` (#607) 2022-10-17 02:33:29 +08:00
release.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
release_test.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
repo.go increased description limits to 2048 (#645) 2023-12-30 04:48:39 +00:00
repo_branch.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_branch_protection.go Add missing fields to BranchProtection and related structs (#626) 2023-08-01 16:26:41 +00:00
repo_branch_test.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
repo_collaborator.go add support for api /repos/{owner}/{repo}/collaborators/{collaborator}/permission (#611) 2023-03-04 20:31:32 +08:00
repo_collaborator_test.go add support for api /repos/{owner}/{repo}/collaborators/{collaborator}/permission (#611) 2023-03-04 20:31:32 +08:00
repo_commit.go Add function to get commit diff/patch (#589) 2022-05-15 06:16:26 +08:00
repo_commit_test.go Add function to get commit diff/patch (#589) 2022-05-15 06:16:26 +08:00
repo_compare.go feat: implement commit comparison feature in Gitea client (#659) 2024-04-17 05:47:25 +00:00
repo_file.go Add Link header parsing in response (#638) 2023-12-04 14:50:48 +00:00
repo_file_test.go Add GetFileReader() & GetFile() support git-lfs (#595) 2022-07-29 18:51:05 +08:00
repo_key.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_migrate.go increased description limits to 2048 (#645) 2023-12-30 04:48:39 +00:00
repo_mirror.go feat(repo-mirrors): add repo sync mirrors (#640) 2023-12-24 20:15:31 +00:00
repo_refs.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_stars.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_stars_test.go Add gitea-vet (#312) 2021-08-13 22:21:17 +08:00
repo_tag.go Add GetTag, GetAnnotatedTag & CreateTag (#533) 2021-08-13 20:27:52 +08:00
repo_tag_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo_team.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
repo_team_test.go Add Repo Team Management Functions (#537) 2021-08-13 23:56:50 +08:00
repo_template.go Add CreateRepoFromTemplate (#536) 2021-08-14 00:28:23 +08:00
repo_template_test.go Add CreateRepoFromTemplate (#536) 2021-08-14 00:28:23 +08:00
repo_test.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
repo_topics.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
repo_topics_test.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
repo_transfer.go Add the Accept/Reject transfer of a repository. (#586) 2022-04-28 09:27:56 +08:00
repo_transfer_test.go Fix CI tests (#579) 2022-04-22 15:52:45 +08:00
repo_tree.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
repo_watch.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
repo_watch_test.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
secret.go feat: Add API routes to list org secrets (#629) 2023-08-15 15:15:48 +00:00
settings.go Update Structs (#524) 2021-07-01 23:10:21 +08:00
settings_test.go feat(release): add GetLatestRelease method (#639) 2024-01-06 05:14:12 +00:00
status.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
status_test.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
user.go Enforce golangci-lint + gofumpt (#587) 2022-04-28 23:33:21 +08:00
user_app.go Add token scopes enum and add to payloads (#617) 2023-04-19 23:57:54 +08:00
user_email.go All Function return http responce (#416) 2020-09-14 02:37:09 +00:00
user_follow.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_gpgkey.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_key.go UrlEscape Function Arguments used in UrlPath (#273) 2021-03-22 04:20:32 +08:00
user_search.go Add GetUserByID (#513) 2021-04-05 11:23:50 +08:00
user_settings.go Add user settings get & update functions (#531) 2021-07-03 23:50:45 +08:00
user_settings_test.go Use goproxy.io instead of goproxy.cn (#574) 2022-03-29 07:09:57 +08:00
user_test.go Use goproxy.io instead of goproxy.cn (#574) 2022-03-29 07:09:57 +08:00
version.go feat: implement commit comparison feature in Gitea client (#659) 2024-04-17 05:47:25 +00:00
version_test.go Add ignoreVersion & manuall version set option (#560) 2022-01-05 00:31:31 +08:00