Commit Graph

9011 Commits (5563d56a328433580bd74635a60cfeefecdc266c)
 

Author SHA1 Message Date
James Lakin 6e6da2c276
Tweak locale to respect singular conflicting file message in P… ()
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
John Olheiser cf33a18a5c
Fix commit view ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
zeripath c512bfd09c
Prevent double waitgroup decrement ()
* Prevent double waitgroup decrement
John Olheiser d32b65ab68
Fix topics dropdown ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Antoine GIRARD 730f026c6e
make: improve make pr ()
guillep2k 08c9160e71
Allow emoji on review head comments ()
Co-authored-by: techknowlogick <matti@mdranta.net>
guillep2k 727fc42db7
Fix issue/pull link ()
silverwind 70dd3faad3
update JS dependencies ()
result of `make npm-update`. no real notable changes, the breaking
change in styleline is Node.js 10 which we already require.
GiteaBot 77431599f6 [skip ci] Updated translations via Crowdin
John Olheiser 95013fde60
Fix push-create SSH bugs ()
* Attempt to fix push-create SSH bugs

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix binding

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Invalid ctx

Signed-off-by: jolheiser <john.olheiser@gmail.com>
GiteaBot 7dcd305424 [skip ci] Updated translations via Crowdin
6543 d4096ab6a2
Ensure DeleteUser is not allowed to Delete Orgs and visa versa ()
* add check to DeleteUser

* add check to DeleteOrganization

* add Test

* remove redundancy (deleteOrg is only used in DeleteOrganization)

* Update models/org.go

Co-authored-by: zeripath <art27@cantab.net>
6543 b3c72a7c4a
[API] expose RepoOwner on Issue responce ()
* add RepoOwner on issue api responce

* CI.restart()
James Lakin 3ff95cef60
Show if a PR has conflicting files on the PR lists ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Lauris BH 20c513be6e
Show download count info in release list ()
* Show download count info in release list

* Use go-humanize
6543 ea50f60df2
Prevent DeleteUser API abuse ()
* fix & co

* word suggestions from @jolheiser
GiteaBot 29151b90c6 [skip ci] Updated translations via Crowdin
Lunny Xiao 48ce135cc9
Move PushUpdateAddDeleteTags to repository module from models ()
* Move PushUpdateAddDeleteTags to repository module from models

* Fix deadlock on sqlite
6543 e959d1a48b
working part of ()
Co-authored-by: zeripath <art27@cantab.net>
zeripath 2c903383b5
Add Unique Queue infrastructure and move TestPullRequests to this ()
* Upgrade levelqueue to version 0.2.0

This adds functionality for Unique Queues

* Add UniqueQueue interface and functions to create them

* Add UniqueQueue implementations

* Move TestPullRequests over to use UniqueQueue

* Reduce code duplication

* Add bytefifos

* Ensure invalid types are logged

* Fix close race in PersistableChannelQueue Shutdown
zeripath b4914249ee
Update aria-fixed semantic-dropdown to fomantic master ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lunny Xiao bf1970d0bd
Improve push update options ()
* Improve push update options

* fix test

* More refactor and fix lint

* fix lint

* Fix lint

Co-authored-by: Lauris BH <lauris@nix.lv>
guillep2k 70aa629ae7
Add warning when using relative path to app.ini ()
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath 391e0638cc
Check if go exists before generating the GOPATH ()
* Check if go exists before generating the GOPATH

* Move export PATH into Go protected section

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
guillep2k bcb52aef09
Implement "embedded" command to extract static resources ()
* draft

* Implement extract command

* Fix nits and force args on extract

* Add !bindata stub, support Windows, fmt

* fix vendored flag

* Remove leading slash for matching

* Add docs

* Fix typos

* Add embedded view command

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath 9b9dd19d7d
Fix broken FlushAll ()
* go function contexting is not what you expect

* Apply suggestions from code review

Co-Authored-By: Lauris BH <lauris@nix.lv>

Co-authored-by: Lauris BH <lauris@nix.lv>
guillep2k 72f9cfc8f0
Use a file as make evidence for fomantic instead of a directory ()
* Use evidence file as dependency instead of dir

* fix eol

* Update .gitignore

Co-Authored-By: silverwind <me@silverwind.io>

* Use FOMANTIC_SOURCES to establish dependencies as per @silverwind

Co-authored-by: silverwind <me@silverwind.io>
Lunny Xiao ce7062a422
Cache last commit to accelerate the repository directory page visit ()
* Cache last commit to accelerate the repository directory page visit

* Default use default cache configuration

* add tests for last commit cache

* Simplify last commit cache

* Revert Enabled back

* Change the last commit cache default ttl to 8760h

* Fix test
silverwind 046bb05979
remove VERSIONS file ()
It serves no clear purpose and is not used anywhere to my knowledge.
Also, it's name to version mapping doesn't work with bundling.
guillep2k 131baa26be
Accept punctuation after simple+cross repository issue references ()
* Support references ending in , . and ;

* Accept :;, in simple refs; fix 2+ consecutive refs

* Include cross-repository references

* Add ?!, fix spacing problem
zeripath f8f6adc2a6
Add button to revert SimpleMDE to plain textarea ()
silverwind 6dcf110628
enable babel-loader cache ()
this speeds up repeated webpack builds by around 20%. It will use the
default cache directory `node_modules/.cache/babel-loader`.

Also added cache invalidation to workaround https://github.com/babel/babel-loader/issues/690
Lunny Xiao 3ccd271081
Fix branch page pull request title and link error ()
* Fix branch page pull request title and link error

* Fix ui
Lunny Xiao 107a694fd6
Fix IsErrPullClosed ()
6543 8d43563a32
[BugFix] [API] Pull.API.Convert: Only try to get HeadBranch if HeadRepo exist ()
* only try to get HeadBranch if HeadRepo exist

* impruve

* no nil error

* add TEST

* correct error msg
6543 13bc82009c
API endpoint for repo transfer ()
* squash

* optimize

* fail before make any changes

* fix-header
guillep2k d816f7018b
Remove migration support from versions earlier than 1.6.0 ()
* Remove migration support from versions earlier than 1.6.0

* Remove unused functions

* Update gogs upgrade instructions

* Improve "latest" link as per @jolheiser

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lauris BH b3d8e2d4f7
Update topics repo count when deleting repository ()
* Update topics repo count when deleting repository

* Add migration to fix incorrect data

* Optimize to use single update to recalculate values
6543 159732dcb7
update ()
John Olheiser 6bb0f20456
Remove unused config on UI ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
GiteaBot 68e4f4efc7 [skip ci] Updated translations via Crowdin
Lunny Xiao eac5142ac7
Fix leveldb test race ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind d7f4f87aaf
fix apple-touch-icon, regenerate images ()
* fix apple-touch-icon, regenerate images

Fixed semi-transparent pixels of apple-touch-icon.png.

I had to manually exclude public/img/loading.png from the commit because
it's an APNG and one of the tools destroys the animation.

* exclude loading.png

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
guillep2k 04cbdf5c08
Implement basic app.ini and path checks to doctor cmd ()
* Add doctor check of app.ini paths

* Make /custom dir not mandatory

* Fix message and improve interface

* Update cmd/doctor.go

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>

* Apaise lint

* Isn't the linter a sweet? (1)

* Isn't the linter a sweet? (2)

* Isn't the linter a sweet?? (3)

* Restart CI

Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
silverwind 35ada598cc
move jquery.are-you-sure to npm/webpack ()
6543 169bb55ec6
[UI] Show pull icon on pull ()
* make fmt
* show pull icon on pull
Lunny Xiao e2c505f5ce
Add RACE_ENABLED=1 envs for make test* ()
Lunny Xiao 79ce91fdde
Movde dependents on macaron from modules/setting ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Lunny Xiao c09e020558
Fix milestone API state parameter unhandled ()
* Fix milestone API state parameter unhandled

* Fix test
6543 f29c301040
Refactor api repo dir ()
* mv migrate

* mv mirror

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