Commit graph

9 commits

Author SHA1 Message Date
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
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
7f50d48c01 File Create/Update/Delete detect DefaultBranch if Branch not set for old Versions (#352)
Gitea >= 1.12.0 Use DefaultBranch on "", mimic this for older versions

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/352
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Andrew Thornton <art27@cantab.net>
2020-06-09 10:11:14 +00:00
6543
3c36bd251b Copy DeleteFileOptions struct fields into UpdateFileOptions struct (#330) 2020-05-21 10:13:32 +00:00
6543
f7cf231ae9 Add DeleteFile() (#302)
add DeleteFile + Tests

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/302
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: Andrew Thornton <art27@cantab.net>
2020-04-03 12:55:16 +00:00
6543
8045079a7a Add Get/Update/Create File (#281)
remove -binding- since sdk dont use it

Merge branch 'master' into add-edit-file

fix test

Merge branch 'master' into add-edit-file

add TEST

add Get/Create/Update-Contents

add missing structs

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/281
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
2020-04-01 02:39:20 +00:00
Lunny Xiao
38803cbe75 Refactor codes to remove structs and depend them on code.gitea.io/gitea/modules/structs (#171)
* refactor codes to remove structs and depend them on code.gitea.io/gitea/modules/structs

* fix testing
2019-05-11 18:38:52 +03:00
Richard Mahn
10ebef4a16 Adds structures for repo file and blob APIs (#152)
* Adds structures for repo file and blob APIs

* Updates Git Blob

* Moves IdentityOptions to Identity in repo_commit for reusability

* Formatting

* Fixed quote

* Fix to json variable

* Fixes to comments

* Adds copyright to header

* Removes unused code

* Makes author and committer pointers

* Removes Identity from being a pointer

* proper struct
2019-03-21 07:37:31 +00:00
Thomas Boerger
4218c36205 Moved source files into subfolder 2016-11-07 11:26:36 -02:00
Renamed from repo_file.go (Browse further)