Commits at 8adba93498ccdde7edcb54e10f6a3d176c3815c4
8adba934Hide private repositories in packages (#19584)
KN4CK3R
authored at
GitHub
comitted at
38d72d40Only show accessible teams in dashboard dropdown list (#19642)
Fixes #19637Jimmy Praet
authored at
GitHub
comitted at
672e5a75prevent double click new issue/pull/comment button (#16157)
* prevent double click new issue/pull/comment button
when network is not good, these button maybe
double clicked, then more than one same issues
pulls or comments will be created. this pull
request will fix this bug.
Signed-off-by: a1012112796 <1012112796@qq.com>a1012112796
authored at
GitHub
comitted at
cab3a8b5Set safe dir for git operations in .drone.yml CI (#19641)
Our drone by necessity runs on git repositories not owned by the drone process. Unfortunately this means that git operations and thence CI builds will fail without the `safe.directory` option being set.
See: https://drone.gitea.io/go-gitea/gitea/54632/2/8techknowlogick
authored at
GitHub
comitted at
994257d2Add missing `sorting` column in `project_issue` table (#19635)
wxiaoguang
authored at
GitHub
comitted at
3ece9d57Simplify `IsVendor` (#19626)
The changes in this file were upstreamed directly into go-enry as https://github.com/go-enry/go-enry/pull/44
and therefore they are no longer needed.
Gusted
authored at
GitHub
comitted at
a7f52684Prevent NPE when checking repo units if the user is nil (#19625)
CheckRepoUnitUser should tolerate nil users.
Fix #19613
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>zeripath
authored at
GitHub
comitted at
0483ee8fAdd "Reference" section to Issue view sidebar (#19609)
* Add "Reference" section to Issue view sidebar
* Removed unneeded tailored CSS, added Fomantic UI classes
* Removed tailored CSS in favour of HTML-only approach
Kindly provided by @Gusted
* Added i18 translation key for reference link string
* Corrected spelling of "References:" to "Reference:" for reference link text
* Removed `Issue.ReferenceLink` in favour of a local template variableneon
authored at
GitHub
comitted at
b536b651GetFeeds must always discard actions with dangling repo_id (#19598)
* GetFeeds must always discard actions with dangling repo_id
See https://discourse.gitea.io/t/blank-page-after-login/5051/12
for a panic in 1.16.6.
* add comment to explain the dangling ID in the fixture
* loadRepoOwner must not attempt to use a nil action.Repo
* make fmt
Co-authored-by: Loïc Dachary <loic@dachary.org>singuliere
authored at
GitHub
comitted at
04fc4b7eCall MultipartForm.RemoveAll when request finishes (#19606)
wxiaoguang
authored at
GitHub
comitted at
7b089c46Remove `RequireHighlightJS` field, update plantuml example. (#19615)
wxiaoguang
authored at
GitHub
comitted at
f034ee6cPullService lock via pullID (#19520)
* lock pull on git&db actions ...
* add TODO notes
* rename prQueue 2 prPatchCheckerQueue
* fmt6543
authored at
GitHub
comitted at
e933f314Add health check endpoint (#18465)
* chore: add health check endpoint
docs: update document about health check
fix: fix up Sqlite3 ping. current ping will success even if the db file is missing
fix: do not expose privacy information in output field
* refactor: remove HealthChecker struct
* Added `/api/healthz` to install routes.
This was needed for using /api/healthz endpoint in Docker healthchecks,
otherwise, Docker would never become healthy if using healthz endpoint
and users would not be able to complete the installation of Gitea.
* Update modules/cache/cache.go
* fine tune
* Remove unnecessary test code. Now there are 2 routes for installation (and maybe more in future)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Marcos de Oliveira <marcossantos@furb.br>ttys3
authored at
GitHub
comitted at
3114cd30Only check for non-finished migrating task (#19601)
* Only check for non-finished migrating task
- Only check if a non-finished migrating task exists for a mirror before
fetching the mirror details from the database.
- Resolves #19600
- Regression: #19588
* Clarify functionGusted
authored at
GitHub
comitted at
9c04da37Make .cs highlighting legible on dark themes. (#19604)
Eekle
authored at
GitHub
comitted at
2d40a4a4Fix broken TR on cherrypick page (#19599)
- `repo.filter_branch` isn't a translation key so use
`repo.pulls.filter_branch` which has the correct translation.Gusted
authored at
GitHub
comitted at
cc3016f7Use correct context in `routers/web` (#19597)
- Don't use the `APIContext` in the web routers.Gusted
authored at
GitHub
comitted at
92f139d0Use for a repo action one database transaction (#19576)
... more context
(part of #9307)6543
authored at
GitHub
comitted at
730420b6Only set CanColorStdout / CanColorStderr to true if the stdout/stderr is a terminal (#19581)
wxiaoguang
authored at
GitHub
comitted at
982b726bDon't fetch Mirror when it's migrating (#19588)
- When a repository is still being migrated, don't try to fetch the
Mirror from the database. Instead skip it. This allows to visit
repositories that are still being migrated and were configured to be
mirrored.
- Resolves #19585
- Regression: #19295
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>Gusted
authored at
GitHub
comitted at
b7abb31bMove user password verification after checking his groups on ldap auth (#19587)
In case the binded user can not access its own attributes.
Signed-off-by: Gwilherm Folliot <gwilherm55fo@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>Gwilherm Folliot
authored at
GitHub
comitted at
772ad761Fix some slice problems (incorrect slice length) (#19592)
Lunny Xiao
authored at
GitHub
comitted at
c8ec2261Fix sending empty notifications (#19589)
- Don't send empty notifications on read notifications API.Gusted
authored at
GitHub
comitted at
438646e0Handle the error of a missing blob object fix #19530 (#19552)
* Handle the error of a missing blob object
* Show error in logs
* as per @zeripath
* Add missing error check
* Add missing error check
* Update compare.go
* Use formal code
* Update compare.go
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>99rgosse
authored at
GitHub
comitted at
c18d8d69Remove legacy `+build:` constraint (#19582)
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.wxiaoguang
authored at
GitHub
comitted at