Commit Graph

18 Commits (cb83288530b1860677b07d72bc4ce8349e3c0d67)

Author SHA1 Message Date
Andrew Imeson d94f15c2fd
Make external issue tracker regexp configurable via API ()
Fixes  

Signed-off-by: Andrew Imeson <andrew@andrewimeson.com>
Lunny Xiao 1d8543e7db
Move some files into models' sub packages ()
* Move some files into models' sub packages

* Move functions

* merge main branch

* Fix check

* fix check

* Fix some tests

* Fix lint

* Fix lint

* Revert lint changes

* Fix error comments

* Fix lint

Co-authored-by: 6543 <6543@obermui.de>
Bian Jiaping e49ef56dde
Add allow_rebase_update, default_delete_branch_after_merge to repository api response ()
`PATCH /repos/{owner}/{repo}` API allows users to update `allow_rebase_update`, `default_delete_branch_after_merge`, but `GET /repos/{owner}/{repo}` API does not return these two options, and API users has no other ways to find the state of these two options.

This PR add `allow_rebase_update`, `default_delete_branch_after_merge` to repository query api response.
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context ()
* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions
6543 b135313c47
[Refactor] convert team(s) to apiTeam(s) ()
* Refactor: teams to api convert

* make org load optional

* more info in tests
Lauris BH 6392f4691a
API: Return primary language and repository language stats API URL ()
6543 54e9ee37a7
format with gofumpt ()
* gofumpt -w -l .

* gofumpt -w -l -extra .

* Add linter

* manual fix

* change make fmt
Peter Gardfjäll 89a3214352
Add MirrorUpdated field to Repository API type ()
Add the last update time to the repository api type.

Close 
qwerty287 7cc44491fa
Add API to manage repo tranfers ()
Lunny Xiao 719bddcd76
Move repository model into models/repo ()
* Some refactors related repository model

* Move more methods out of repository

* Move repository into models/repo

* Fix test

* Fix test

* some improvements

* Remove unnecessary function
Lunny Xiao 1fee11d69a
Move accessmode into models/perm ()
Lunny Xiao 99b2858e62
Move unit into models/unit/ ()
* Move unit into models/unit/

* Rename unit.UnitType as unit.Type
6543 75205b5669
Fix some API bugs ()
* Repository object only count releases as releases (fix )

* EditOrg respect RepoAdminChangeTeamAccess option (fix )
6543 290cf75f93
[refactor] Unify the export of user data via API ()
* [refactor] unify how user data is exported via API

* test time via unix timestamp
parnic f4d27498bd
Add DefaultMergeStyle option to repository ()
Fixes 
Paul Barton 7576e37a65
Add MirrorInterval to the API ()
* Added MirrorInterval to the API

* Remove MirrorInterval from CreateRepository

* Removed Duplicate UpdateMirror Function

* Updated Error Logging

* Update Log Message for is not Mirror

Co-authored-by: 6543 <6543@obermui.de>

* Delete Debug Statement that snuck in

Co-authored-by: zeripath <art27@cantab.net>

* Add Check for If Interval is too small

* Output to API Call

* Add Error Object when time is Less than Min Interval

* Frequency Error Message

Co-authored-by: zeripath <art27@cantab.net>

* Allow Zero Mirror Interval

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
Eric Belhomme 6ddf881245
issue : return original URL in `original_url` JSON field ()
Co-authored-by: Gitea <gitea@fake.local>
6543 7ac8a770e1
Move Repo APIFormat to convert package ()
* Move Repo APIFormat to convert package

* tweek