Gusted
8fab37e740
Enforce golangci-lint + gofumpt ( #587 )
...
- Enforce [gofumpt](https://github.com/mvdan/gofumpt ) to enforce a more idiomatic go style.
- Enforce golangci-lint a bunch of linters! Which were able to detect a few issues in the current codebase and have been fixed by this PR.
- Updated the Makefile to use `go install ....` instead of the old deprecated way of `go get`
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/587
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-committed-by: Gusted <williamzijl7@hotmail.com>
2022-04-28 23:33:21 +08:00
Gusted
603e4358f8
Fix CI tests ( #579 )
...
- `master` -> `main`, due to https://github.com/go-gitea/gitea/pull/19354
- Fix incorrect variable being passed into assert in `TestPull`.
- Fix `createTestRepo` to only delete existing TestRepo if the result's repo wasn't redirected(e.g. due to being transferred or renamed). Fixes the error in TransferRepo.
- Remove a check for tag verfication, for some developers this will always fail due to local git configs forcing signing on tags.
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/579
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-committed-by: Gusted <williamzijl7@hotmail.com>
2022-04-22 15:52: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
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
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
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
6543
688ee1978e
All Function return http responce ( #416 )
...
Add Docs on how to deal with this breaking change
doResponse should return responce in all cases, to prosses things manualy if wanted
helper func return http response
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/416
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-09-14 02:37:09 +00:00
6543
18f39029e9
Pull : Add a Fallback for GetPullRequestDiff/Patch ( #399 )
...
add VersionCheck and fallback for old instance
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/399
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
2020-09-07 03:17:54 +00:00
6543
9e280adb4d
CreateOrgOption rename UserName to Name ( #386 )
...
add docu
CreateOrgOption rename UserName to Name
since it is the name of the new Organisation and not some User
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/386
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
2020-07-30 19:46:18 +00:00
6543
e7c56d8f50
fix ineffassign in Tests & set Version v0.13.0 ( #345 )
...
increment version
fix ineffassign
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/345
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
2020-05-27 13:04:51 +00:00
6543
3c36bd251b
Copy DeleteFileOptions struct fields into UpdateFileOptions struct ( #330 )
2020-05-21 10:13:32 +00:00
6543
b4696d5416
PullMerge: use enum for MergeStyle ( #328 )
...
Its already Breaking ... make struct look nice
Signed-off-by: 6543 <6543@obermui.de>
PullMerge: use enum for MergeStyle
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/328
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
2020-05-20 22:41:21 +00:00
6543
79665cae15
Fix MergePullRequest & extend Tests ( #278 )
...
rm MergePullRequestResponse
Fix MergePullRequest
Extend Tests
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/278
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-04-23 12:51:36 +00:00
spawn2kill
e7bf8a6842
added pagination options for listing requests ( #205 )
...
fix golint issue
small improvements
ListMyRepos now receives a value instead of a pointer
reverted makefile changes
added sleep in order to increase CI stability
resolved conflicts
Use RepositoryMeta struct on Issues (#267 )
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/267
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
extend SearchUsers (#248 )
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: spawn2kill <spawn2kill@noreply.gitea.io>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/248
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Implement Repo Transfer (#264 )
fix test
check version
add TestRepoTransfer
add TransferRepo
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/264
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Add notifications (#226 )
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: spawn2kill <spawn2kill@noreply.gitea.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/226
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Use StateType (#265 )
use StateType
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/265
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
opt setDefaults on issue_comment
trigger CI
Trigger notification
resolved conflicts
Fix AddEmail (#260 )
Merge branch 'master' into fix-AddEMail
Add ListIssueCommentOptions for optional param (#243 )
Merge branch 'master' into impruve-ListXIssueComments
Remove ListUserIssues() ... (#262 )
Merge branch 'master' into rm-ListUserIssues
correct version (#257 )
Merge branch 'master' into targed-version
Extend Issue Struct (#258 )
fix
extend IssueTest
add Repository to Issue struct
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/258
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Merge branch 'master' into targed-version
format code (#245 )
fix if test is to fast
remove lgtm bot config (gitea handle this now)
format code
Add GetIssueComment (#216 )
Merge branch 'master' into update-comment-api
Fix & Refactor UserApp Functions (#247 )
Merge branch 'master' into refactor-user-app
Add SearchRepo API Call (#254 )
Merge branch 'master' into search_repo
IssueSubscribtion: Check http Status responce (#242 )
Merge branch 'master' into impruve-issueWatch
Refactor RepoWatch (#241 )
Merge branch 'master' into refactor-repoWatch
Add ListMilestoneOption to ListRepoMilestones (#244 )
use StateType
use PageSize
adjut test since gitea bug got fixed (#gitea/10047)
add TestMilestones
add optional ListMilestoneOption
format
Add ListOptions struct (#249 )
same struct as in models/list_options.go
add mising license header
add ListOptions struct
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/249
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
[README] add import path (#239 )
add import path
add import path to readme
Changelog v0.11.0 (#235 )
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/235
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Add TestMyUser (#237 )
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/237
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/239
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/244
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Merge branch 'master' into refactor-repoWatch
Add ListOptions struct (#249 )
same struct as in models/list_options.go
add mising license header
add ListOptions struct
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/249
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
add TEST
fix GetMyWatchedRepos
[README] add import path (#239 )
add import path
add import path to readme
Changelog v0.11.0 (#235 )
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/235
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: John Ol...
Co-authored-by: Hilário Coelho <hilario.coelho@securityside.com>
Co-authored-by: 6543 <6543@noreply.gitea.io>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/205
Reviewed-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
2020-02-05 07:59:55 +00:00
6543
524bda1e14
Use StateType ( #265 )
...
use StateType
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/265
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
2020-02-04 07:58:46 +00:00
6543
5612bf91d6
Fix ListIssue Functions (now respect ListIssueOption's) ( #225 )
...
fix test
add Test
add more test cases and fix
nice log
add Issue Tests
impruve
more Repo Tests and mv createTestRepo
introduce "createTestRepo" a standad func to create a repo for testing
add workaround
* Update Dates
* Fix ListIssueOption
Fix ListRepoPullRequests (#219 )
add ToDo notice
add ListRepoPullRequests TEST
remove useless drone config emtrys
fmt
ping CI
add new Options from PR #217
use query params
Add some PR list options (#217 )
Empty Commit
Add enums
Add some PR list options
Add test framework (#227 )
[Extend] StopWatch struct & functions (#211 )
add StopWatch struct & functions
[Add] reaction struct and functions (#213 )
add struct and functions
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
[Add] issue Un-/Subscription function (#214 )
fix lint
add issue subscription function
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
[Add] GetBlob (#212 )
fix header from PR 206
add GetBlob
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: 6543 <6543@noreply.gitea.io>
Add test framework (#227 )
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Add some PR list options (#217 )
Empty Commit
Add enums
Add some PR list options
Add test framework (#227 )
[Extend] StopWatch struct & functions (#211 )
add StopWatch struct & functions
[Add] reaction struct and functions (#213 )
add struct and functions
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
[Add] issue Un-/Subscription function (#214 )
fix lint
add issue subscription function
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
[Add] GetBlob (#212 )
fix header from PR 206
add GetBlob
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: 6543 <6543@noreply.gitea.io>
Add test framework (#227 )
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/225
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-01-26 02:46:38 +00:00
6543
b24cfd841c
Fix ListRepoPullRequests ( #219 )
...
add ToDo notice
add ListRepoPullRequests TEST
remove useless drone config emtrys
fmt
ping CI
add new Options from PR #217
use query params
Add some PR list options (#217 )
Empty Commit
Add enums
Add some PR list options
Add test framework (#227 )
[Extend] StopWatch struct & functions (#211 )
add StopWatch struct & functions
[Add] reaction struct and functions (#213 )
add struct and functions
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
[Add] issue Un-/Subscription function (#214 )
fix lint
add issue subscription function
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
[Add] GetBlob (#212 )
fix header from PR 206
add GetBlob
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: 6543 <6543@noreply.gitea.io>
Add test framework (#227 )
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-01-16 03:52:26 +00:00