go-sdk/docs/migrate-v0.15-to-v0.16.md
Norwin 3ff2c60a86 GetPullRequestDiff: add PullRequestDiffOptions param (#542)
this is for the upstream change in https://github.com/go-gitea/gitea/pull/17158

Co-authored-by: Norwin <git@nroo.de>
Reviewed-on: gitea/go-sdk#542
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2022-01-14 01:30:39 +08:00

930 B

Migration Guide: v0.15 to v0.16

v0.16.0 introduces a number of API changes, which should be simple to migrate. Just follow this guide and if you still encounter problems, ask for help on Discord or feel free to create an issue.

Upstream API changes

As we aim to track API changes in Gitea 1.16 with this SDK release, you may find this summary listing of changes helpful.

GetPullRequestDiff

Added new parameter opts PullRequestDiffOption. Gitea 1.16 will default to omit binary file changes in diffs; if you still need that information, set opts.Binary = true. Related PRs: