Commit Graph

11298 Commits (dbbb75712d03278811bd76c0dc53727cf869ae5e)
 

Author SHA1 Message Date
Kyle D dbbb75712d
Move tooltip down to allow selection of Remove File on error () ()
zeripath 462c6fdee2
Fix setting redis db path () ()
Backport 

There is a bug setting the redis db in the common nosql manager whereby the db path
always fails.

This PR fixes this.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Kyle D cead819cb5
Implement delete release attachments and update release attachments' name () ()
* Implement delete release attachment

* Add attachments on release edit page

* Fix bug

* Finish del release attachments

* Fix frontend lint

* Fix tests

* Support edit release attachments

* Added tests

* Remove the unnecessary parameter isCreate from UpdateReleaseOrCreatReleaseFromTag

* Rename UpdateReleaseOrCreatReleaseFromTag to UpdateRelease

* Fix middle align

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath 4fa2804238
Performance improvement for last commit cache and show-ref () ()
Backport 

* Improve performance when there are multiple commits in the last commit cache

* read refs directly if we can

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath 3ce46a7fbd
Fix DB session cleanup () ()
Backport 

The DB session clean up needs to check expiry not created_unix.

Signed-off-by: Andrew Thornton <art27@cantab.net>
6543 15886ce048
Fixed several activation bugs () ()
* Removed unneeded form tag.

* Fixed typo.

* Fixed NPE.

* Use better error page.

* Splitted GET and POST.

Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com>
6543 a725d31496
Delete references if repository gets deleted () ()
* Remove DeletedBranch and LFSLocks.

* Sort beans.

Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
6543 8e27f6e814
Fix orphaned objects deletion bug () ()
* Fix orphaned objects deletion bug

* extend test

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

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
KN4CK3R 54263ff123
Delete protected branch if repository gets removed () ()
* Added missing error parameters.

* Delete protected branch if repository gets removed.

* Added doctor fix.
6543 3bde297121
[API] pull notification subject status: add "merged" () ()
Current subject status can be "", "open" and "closed". This add "merged" to it.
zeripath 0dfde367c1
Remove spurious set name from eventsource.sharedworker.js () ()
Backport 

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath 875501584b
not update updated uinx for `git gc` () ()
Backport 

fix 

Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: a1012112796 <1012112796@qq.com>
zeripath 4190c134e6
Fix commit graph author link () ()
Backport 

The author link on the commit graph is incorrect and isn't providing a link to the author.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao cae46216e4
fix webhook timeout bug () ()
* Also fix the potential problem in httplib
techknowlogick 761111f9ed
Resolve panic on failed interface conversion in migration v156 () ()
go panics otherwise with `panic: interface conversion: error is git.ErrNotExist, not *git.ErrNotExist`, thanks to Codeberg/Andi for reporting this.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Nathan Smith 57f1476093
Bump unrolled/render to v1.1.0 () ()
v1.1.0 has improved buffer pooling
Lunny Xiao bdba89452d
Fix missing storage init () ()
zeripath 6e2dacfef6
If the default branch is not present do not report error on stats indexing (follow-up of ) () ()
Backport 
Backport 

  doesn't completely fix this problem because the error returned is an ObjectNotExist
error not a BranchNotExist error.

Add test for ErrObjectNotExist too

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao c0869c295a
Fix lfs management find () ()
* Fix lfs management find ()

Fix 

* Do not do 40byte conversion within ParseTreeLine
* Missed a to40ByteSHA

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>

* Remove space

Co-authored-by: Andrew Thornton <art27@cantab.net>
zeripath a719311f6d
Add placeholder text to deploy key textarea () ()
Backport 

Add placeholder text to deploy key textarea

Related 

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath 248b67af6f
Fix NPE on view commit with notes () ()
Backport 

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
silverwind 990c6089db
Project board improvements () ()
* Project board improvements

- Fix link colors
- Extract CSS to own file
- Various minor tweaks to make it look better

Fixes: https://github.com/go-gitea/gitea/issues/15424
Fixes: https://github.com/go-gitea/gitea/issues/15506
Fixes: https://github.com/go-gitea/gitea/pull/15511

* fix squashed cards on small view area

* more css fixes, add second row from issue list

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
KN4CK3R 5da024a019
Add ETag header () ()
* Add ETag header.

* Comply with RFC 7232.

* Moved logic into httpcache.go

* Changed name.

* Lint

* Implemented If-None-Match list.

* Fixed missing header on *

* Removed weak etag support.

* Removed * support.

* Added unit test.

* Lint

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao eff2499be7
Fix bug on commit graph () ()
zeripath 4a3c6384ac
Send size to /avatars if requested () ()
Backport 

If an avatar is requested in a particular size ensure that /avatars also gets the size request

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
zeripath 2b1989e59f
Prevent migration 156 failure if tag commit missing () ()
Backport 

It is possible that tag commits could be deleted or missing from repos. This causes
migration 156 to fail and breaks upgrade.

This PR simply logs the failure.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Mike L 340c4fc7c7
Repo branch page: label size, PR ref, new PR button alignment () ()
6543 918d3d96ff
Changelog v1.14.1 ()
* RAW Changelog v1.14.1

* wordings

* Apply suggestions from code review

Co-authored-by: techknowlogick <matti@mdranta.net>

* Update CHANGELOG.md

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

* Update CHANGELOG.md

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

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
6543 92c91d7d8b
Performance improvement for list pull requests () ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath 9dc76b2036
Fix bug clone wiki () ()
Backport 

Fix 

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath 802a4314ef
dump: Add option to skip LFS/attachment files () ()
Backport 

* Add option to skip dumping LFS/attachment files

* Fix fmt issues

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: Johan Van de Wauw <johan@gisky.be>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath edd4ab49c8
Ensure review dismissal only dismisses the correct review () ()
Backport 

Fix 

Signed-off-by: Andrew Thornton art27@cantab.net

Co-authored-by: 6543 <6543@obermui.de>
zeripath 55e6cde7c1
Use subdir for URL () ()
Backport 

Fixes 

Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com>

Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com>
6543 729fa06468
migration: github: if rate limit is not enabled, ignore it () ()
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath b228a0aa44
Use index of the supported tags to choose user lang () ()
Backport 

Fix .

The previous implementation used the first return value of matcher.Match, which is the chosen language tag but may contain extensions such as de-DE-u-rg-chzzzz.

As mentioned in the documentation of language package, matcher.Match also returns the index of the supported tags, so I think it is better to use it rather than manipulate the returned language tag.

Co-authored-by: Naohisa Murakami <tiqwab.ch90@gmail.com>
Lunny Xiao 9e7e11224f
Fix potential copy lfs records failure when fork a repository () ()
zeripath 85880b2a0b
Query the DB for the hash before inserting in to email_hash () ()
Backport 

Some postgres users have logging which logs even failed transactions. So
just query the db before trying to insert.

Fix 

Signed-off-by: Andrew Thornton art27@cantab.net
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath 211bb911e3
Build go-git variants for windows () ()
Backport 

It appears that there are significant performance problems with the pure git backend
on windows.

Therefore until we can sort this out - provide go-git backend builds.

Signed-off-by: Andrew Thornton <art27@cantab.net>
silverwind 0554d1dd01
Lock down build-images dependencies ()
Partial extraction from  for 1.14. Locks down build-images
dependencies and adds missing node_modules dependency.
zeripath 00e55dd223
Prevent superfluous response.WriteHeader () ()
Backport 

This PR simply checks the status before writing the header.

Signed-off-by: Andrew Thornton <art27@cantab.net>
a1012112796 b28c3245cc
fix wrong file link in code search page () ()
in previous the grenrated link is
``testg/testrepo/src/commit/....``
which is not right.

the right version is ``/testg/testrepo/.......``
(start wiht ``/``)
or ``http://127.0.0.1:3000/xxxxx`` (full link)

to make it hase same result with explore page
I choose the secound style.

fix 

Signed-off-by: a1012112796 <1012112796@qq.com>

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

Co-authored-by: 6543 <6543@obermui.de>
silverwind ddfb729168
Clone panel fixes ()
- Use <button> over <div> for a button
- Fix absent border-right on wiki
- Fix absent border-radius on wiki
John Olheiser 6ef62e3f8e
quick fix () ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
zeripath 2c4f1ed13e
Fix ambiguous argument error on tags () ()
Backport 

There is a weird gotcha with GetTagCommitID that because it uses git rev-list
can cause an ambiguous argument error.

This PR simply makes tags use the same code as branches.

Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick fa3fe1e28a
v172 migration adds created_unix field instead of expiry () ()
The Session table must have an Expiry field not a created_unix field - somehow
this migration adds the incorrect named field leading to  reports.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
techknowlogick 62f5cf4386
Fix repository search () ()
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: KN4CK3R <KN4CK3R@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
techknowlogick 779d1185e7
Prevent NPE on avatar direct rendering if federated avatars disabled () ()
 assumed that direct avatar urls would always be libravatar urls - this leads
to NPEs if federated avatar service is disabled.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: zeripath <art27@cantab.net>
silverwind f3d0c76afc
Fix wiki clone urls () ()
Fix wiki clone urls

Regressed by: 9a4050f1e8
Fixes: https://github.com/go-gitea/gitea/issues/15420
Tomás Warynyca 5a4729d5e2
fix dingtalk icon url ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath 88a7349375
Standardise icon on projects PR page () ()
Backport 

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>