Commit Graph

59 Commits (270aab429ef025df9a0b9bf9e3982729ae8df449)

Author SHA1 Message Date
Lunny Xiao 2677d071f9
Move newbranch to standalone package ()
* Move newbranch to standalone package

* move branch functions to modules to avoid dependencies cycles

* fix tests

* fix lint

* fix lint
David Svantesson 32fb813133 Allow repo admin to merge PR regardless of review status ()
* Allow repo admin to merge even if review is not ok.
Lunny Xiao 4d06d10dba Move tracked time api convert to convert package ()
Lunny Xiao 384c2b342e
Move pull request api convert to convert package ()
* Move pull request api convert to convert package

* Rename ToPullRequest to ToAPIPullRequest
6543 61c59bd695 [Bug] [API] Add language to user api ()
* add language to user api

* OK

Co-Authored-By: Lauris BH <lauris@nix.lv>
David Svantesson d0edb607a3 Fix what information is shown about user in API. ()
* Fix what information is shown about user in API.

* Use Email directly, as KeepEmailPrivate is already handled.
David Svantesson 69a255defb Team permission to create repository in organization ()
* Add team permission setting to allow creating repo in organization.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Add test case for creating repo when have team creation access.

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* build error: should omit comparison to bool constant

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>

* Add comment on exported functions

* Fix fixture consistency, fix existing unit tests

* Fix boolean comparison in xorm query.

* addCollaborator and changeCollaborationAccessMode separate steps

More clear to use different if-cases.

* Create and commit xorm session

* fix

* Add information of create repo permission in team sidebar

* Add migration step

* Clarify that repository creator will be administrator.

* Fix some things after merge

* Fix language text that use html

* migrations file

* Create repository permission -> Create repositories

* fix merge

* fix review comments
David Svantesson 86cff86b46 Update branch API endpoint to show effective branch protection. ()
* Add API endpoint for displaying effective branch protection.

* Add status checks.
Lunny Xiao daab245167
Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert ()
* Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert

* fix fmt