qwerty287
29e6eb37fe
Fix URL param ( #568 )
...
The URL param for pre-releases was `draft`, it should be `pre-release`.
Co-authored-by: qwerty287 <ndev@web.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/568
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: qwerty287 <qwerty287@noreply.gitea.io>
Co-committed-by: qwerty287 <qwerty287@noreply.gitea.io>
2022-02-15 23:14:18 +08:00
takirala
73182f46eb
More descriptive errors when validating repo metadata ( #567 )
...
When creating a repository using gitea client, it performs some validation on client options and the errors returned are not descriptive enough. This PR makes the errors more precise so that the user can fix the errors easily.
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/567
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: takirala <takirala@noreply.gitea.io>
Co-committed-by: takirala <takirala@noreply.gitea.io>
2022-02-01 07:14:45 +08:00
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: https://gitea.com/gitea/go-sdk/pulls/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
6543
635de1b821
Add ignoreVersion & manuall version set option ( #560 )
...
be able to skip version check if needed.
!!! Be careful, because using it incorrectly can result in infinite loops with pagination !!!
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/560
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
2022-01-05 00:31:31 +08:00
6543
a87a2c7390
Fix version for next release ( #561 )
...
as title
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/561
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2022-01-03 02:27:24 +08:00
spawn2kill
5d54a04f8d
Added missing fields to MergePullRequestOption ( #554 )
...
Adds `MergeCommitID`, `delete_branch_after_merge` and `force_merge` missing fields according to [Gitea Swagger docummentation](https://try.gitea.io/api/swagger#/repository/repoMergePullRequest ).
Co-authored-by: Hilário Coelho <hilario.coelho@securityside.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/554
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: spawn2kill <spawn2kill@noreply.gitea.io>
Co-committed-by: spawn2kill <spawn2kill@noreply.gitea.io>
2021-11-12 20:57:44 +08:00
Norwin
0fb32ac11f
NotificationSubject: add HTMLURL fields ( #548 )
...
upstream change: https://github.com/go-gitea/gitea/pull/17178
Co-authored-by: Norwin <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/548
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2021-10-14 16:24:30 +08:00
Lunny Xiao
bf0e0883a8
Fix debug ( #545 )
...
As title.
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/545
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-10-05 13:16:14 +08:00
6543
4debc6ca4b
Extend Label Test ( #540 )
...
make test coverate 53.8%
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/540
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-08-29 02:28:00 +08:00
6543
71d2bf01d1
Add CreateRepoFromTemplate ( #536 )
...
close #532
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/536
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-08-14 00:28:23 +08:00
6543
b81847d03d
Add Repo Team Management Functions ( #537 )
...
close #526
* [x] functions
* [x] tests
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/537
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-08-13 23:56:50 +08:00
6543
63e97e127c
Add gitea-vet ( #312 )
...
use gitea-vet to apply gitea specific vet rules
Co-authored-by: 6543 <6543@noreply.gitea.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/312
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: KN4CK3R <kn4ck3r@noreply.gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-08-13 22:21:17 +08:00
6543
f5cc003900
Add GetTag, GetAnnotatedTag & CreateTag ( #533 )
...
Add func to manage git tags via api
close #528
Co-authored-by: Andrew Thornton <art27@cantab.net>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/533
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-08-13 20:27:52 +08:00
6543
dee0475f01
Add GetReviewers & GetAssignees ( #534 )
...
close #525
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/534
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-08-13 20:16:25 +08:00
6543
79f379313c
Add user settings get & update functions ( #531 )
...
close #529
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/531
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-07-03 23:50:45 +08:00
6543
230fd25196
Add ListPullRequestCommits ( #530 )
...
ref: https://github.com/go-gitea/gitea/pull/16300
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/530
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-07-03 20:29:50 +08:00
6543
13d2d23dfc
Update Structs ( #524 )
...
Update gitea structs to [365c4e9316bbcc8bdf9cf68ef237bf18ae8db315](365c4e9316
) state.
use:
`git log --name-only --pretty=oneline --full-index v1.14.0..HEAD | grep -vE '^[0-9a-f]{40} ' | sort | uniq | grep ^modules/structs`
and
`git diff --full-index v1.13.0..HEAD -- modules/structs`
if you like to check yourselve
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/524
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-07-01 23:10:21 +08:00
6543
cc08994d13
Update List Options ( #527 )
...
* ListReleasesOptions: https://github.com/go-gitea/gitea/pull/16175
* ListNotificationOptions: https://github.com/go-gitea/gitea/pull/16177
* ListIssueOption: https://github.com/go-gitea/gitea/pull/16174
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/527
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-07-01 19:39:50 +08:00
6543
fb42ca1c8d
Introduce NotifySubjectState ( #520 )
...
close #515
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/520
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-07-01 05:06:50 +08:00
6543
42fed7165c
Update tests to new changes upstream ( #518 )
...
as title
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/518
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-05-28 06:02:01 +08:00
J0Nes90
e11a4f7f3b
Add GetUserByID ( #513 )
...
Co-authored-by: Jochen Hunz <j.hunz@anchorpoint.app>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/513
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: J0Nes90 <j0nes90@noreply.gitea.io>
Co-committed-by: J0Nes90 <j0nes90@noreply.gitea.io>
2021-04-05 11:23:50 +08:00
J0Nes90
4e4d6dd731
Add GetRepoByID ( #511 )
...
Add a function to get a repository by a given ID
Co-authored-by: Jochen Hunz <j.hunz@anchorpoint.app>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/511
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: J0Nes90 <j0nes90@noreply.gitea.io>
Co-committed-by: J0Nes90 <j0nes90@noreply.gitea.io>
2021-04-04 00:35:19 +08:00
6543
7de882b744
ListFunctions: option to disable pagination ( #509 )
...
the sdk enforce pagination, but most list endpoints dont require it ...
close #507 fully
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/509
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-03-31 04:28:44 +08:00
6543
0599915e88
Drop deprecations ( #503 )
...
start v0.15.0 development
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/503
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-03-31 00:36:33 +08:00
6543
120aa6234e
Fix setDefaults ( #508 )
...
close one issue of #507
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/508
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-03-30 04:57:07 +08:00
6543
6b6fdd91ce
UrlEscape Function Arguments used in UrlPath ( #273 )
...
close #271
* [x] add check if user/repo-name is empty
* [x] use net/url for links to encode
Co-authored-by: Andrew Thornton <art27@cantab.net>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/273
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-03-22 04:20:32 +08:00
6543
e0cf20a456
Add workaround to get head branch sha of pulls with deleted head branch ( #498 )
...
as title
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/498
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-03-09 05:15:42 +08:00
Norwin
ff82113459
Make Client thread-safe & Add docs ( #495 )
...
fix #494
Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/495
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2021-03-05 04:19:55 +08:00
6543
a968e32ca1
Add Create/Delete ReviewRequests ( #493 )
...
close #439
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/493
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-17 23:03:45 +08:00
6543
b0ee740ed0
Handle Contents Edge-Case ( #492 )
...
close #459
add Tests for #485
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/492
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-17 06:47:21 +08:00
6543
32b0722f98
GetFile: Use "ref" in-query if posible ( #491 )
...
based on https://github.com/go-gitea/gitea/pull/14563
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/491
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-17 04:07:44 +08:00
cameronbraid
757f8bdb90
feat: added repo ListContents and changed GetContents doc to talk about a single file ( #485 )
...
fix #484
Co-authored-by: Cameron Braid <cameron@drivenow.com.au>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/485
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: cameronbraid <cameronbraid@noreply.gitea.io>
Co-committed-by: cameronbraid <cameronbraid@noreply.gitea.io>
2021-02-15 14:51:38 +08:00
6543
95ed973c8d
Add Un-/DismissPullReview funcs ( #489 )
...
close #487
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/489
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-15 11:15:24 +08:00
6543
8947cd3b00
Update Structs ( #486 )
...
* FileOptions: add Signoff
* Commit: add CommitAffectedFiles
* BranchProtection, CreateBranchProtectionOption, EditBranchProtectionOption: add BlockOnOfficialReviewRequests
* MigrateRepoOption: add MirrorInterval & enable gogs as source option
* EditRepoOption: Add new fields
* Repository: Add new fields & related structs
* PullReview: Add fields
* StopWatch: Add new fields
* EditIssueOption: Add option to delete Deadline
* EditUserOption: lot of options got optional
close #479
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/486
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-14 03:24:00 +08:00
6543
c5a981333c
Add DeleteTag & Correct DeleteReleaseByTag ( #488 )
...
* Add DeleteTag + Tests
* Correct DeleteReleaseByTag func + Tests
this is because of https://github.com/go-gitea/gitea/pull/14563 witch fixed unreleased inconsistency
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/488
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-14 00:14:24 +08:00
6543
fd7e38f7b5
Add Repo Un-Star Functions ( #483 )
...
close #482
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/483
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-02-06 02:35:07 +08:00
6543
063d97fe74
Update Test Data ( #480 )
...
let the test PASS again
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/480
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
2021-01-30 21:25:21 +08:00
petergardfjall
ff00c13597
Add GetArchiveReader() ( #476 )
...
This PR close #475
It complements the `Client.GetArchive` call, which returns a byte slice and hence is unsuitable for use with large repositories, with a `Client.GetArchiveReader` method that returns a `io.ReadCloser` that streams the retrieved archvie and, therefore, induces a much smaller memory footprint on the calling client.
Co-authored-by: Peter Gardfjäll <peter.gardfjall.work@gmail.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/476
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-authored-by: petergardfjall <petergardfjall@noreply.gitea.io>
Co-committed-by: petergardfjall <petergardfjall@noreply.gitea.io>
2021-01-18 01:14:07 +08:00
cameronbraid
30e7dc9ccb
Add html_url field to Release struct ( #477 )
...
gitea server returns a html_url field so make this available in the Release struct
Co-authored-by: Cameron Braid <cameron@drivenow.com.au>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/477
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-authored-by: cameronbraid <cameronbraid@noreply.gitea.io>
Co-committed-by: cameronbraid <cameronbraid@noreply.gitea.io>
2021-01-17 23:14:34 +08:00
Norwin
97e61e5a8a
Improve PullReview docs ( #469 )
...
document some PullReview fields
code review
Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/469
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
2020-12-17 18:14:17 +08:00
6543
e34d140607
Remove & Rename TrackedTimes list functions ( #467 )
...
Start Migration Guide
rm GetUserTrackedTimes()
add options to GetRepoTrackedTimes
Dedub Code & total refactor
rename ListTrackedTimes -> ListIssueTrackedTimes
add jsonHeader on all tt func
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/467
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
2020-12-17 18:03:47 +08:00
Norwin
7ddbf1a015
Fix GetCombinedStatus() ( #470 )
...
fix broken GetCombinedStatus
weirdly enough, gitea API responds to .../status properly, if ref has a status.
but if there is no status, an empty response is returned.
../statuses handles both correctly.. 🙃
fix ListStatuses
rename sha to ref and use jsonHeader on GetCombinedStatus
Add Tests
enable tests for GetCombinedStatus()
next fix
final fix
Co-authored-by: Norwin Roosen <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/470
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
2020-12-17 12:46:51 +08:00
6543
cd52f0058b
Add Ref to Issue structs ( #466 )
...
Add Ref to Issue structs
Add TEST
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/466
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
2020-12-16 06:16:31 +08:00
Norwin
68eec69f47
Add DeleteRepoTag function ( #461 )
...
add DeleteRepoTag()
fixes #441
add test
didnt run them yet 🙃
Co-authored-by: Norwin Roosen <git@nroo.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/461
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: khmarbaise <khmarbaise@noreply.gitea.io>
Co-Authored-By: Norwin <noerw@noreply.gitea.io>
Co-Committed-By: Norwin <noerw@noreply.gitea.io>
2020-12-10 02:08:22 +08:00
6543
6ea6e887f2
Update Issue Struct ( #458 )
...
add HTMLURL
deprecate Assignee
add backwards compatibility
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/458
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
2020-11-29 23:07:36 +08:00
6543
60293eb2d1
Use sync.Once for loading ServerVersion ( #456 )
...
rename loadClientServerVersion -> loadServerVersion
use sync.Once for loading ServerVersion
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/456
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
2020-11-13 09:03:33 +08:00
6543
aa13606bc6
Add Helper for Optional Values ( #448 )
...
Add helper for optional bool, string & int64
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/448
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
2020-11-13 05:27:28 +08:00
6543
b00ea89ffe
Add Gitea2Gitea Migration Support ( #454 )
...
Add Gitea2Gitea Migration Support
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/454
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
2020-11-13 05:16:11 +08:00
6543
9c81fa936f
Use Predefind Versions & Compare Function ( #442 )
...
update min go requrement & update required go-version lib
use special version in notifications
migrate to new version check function
add predefined versions & comparsion function
Co-authored-by: 6543 <6543@noreply.gitea.io>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/442
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-Authored-By: 6543 <6543@obermui.de>
Co-Committed-By: 6543 <6543@obermui.de>
2020-11-13 04:59:04 +08:00
6543
378e711f7a
Update CreateRepoOption struct ( #445 )
...
extend Validate() for CreateRepoOption
update CreateRepoOption struct
Add TrustModel enum
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/445
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Co-Authored-By: 6543 <6543@noreply.gitea.io>
Co-Committed-By: 6543 <6543@noreply.gitea.io>
2020-11-09 23:57:26 +08:00