Commit Graph

9222 Commits (e83daf77ade99057b61525c1f54ed3d10aec8091)
 

Author SHA1 Message Date
zeripath e83daf77ad
Avoid logging []byte in queue failures - convert to string first ()
Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Lunny Xiao 61f603cd8a
Create a new function to build search repository condition ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
zeripath 48890ce546
Allow site admin to check /api/v1/orgs endpoints ()
Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath 052bff0cff
Convert plumbing.ErrObjectNotFound to git.ErrNotExist in getCommit ()
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
zeripath ea67e563dd
Use ErrKeyUnableToVerify if fail to calc fingerprint in ssh-keygen ()
* Use ErrKeyUnableToVerify if fail to calc fingerprint in ssh-keygen

Fix 

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

* Pass up the unable to verify
赵智超 f9f2c163b1
bug: fix assignees double load bug ()
Because the assigness has been loaded in

compare.go 416:
    RetrieveRepoMetas(ctx, ctx.Repo.Repository, true)
then
issue.go 381
	RetrieveRepoMilestonesAndAssignees(ctx, repo)
then

issue.go 361 -- 365 , they are load assignees

So the code on compare.go 425 -- 427 is double work,
and which is the reason of 

Signed-off-by: a1012112796 <1012112796@qq.com>
S7evinK 828a27feeb
Add Matrix webhook ()
* Add Matrix webhook

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Add template and related translations for Matrix hook

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Add actual webhook routes and form

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Add missing file

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Update modules/webhook/matrix_test.go

* Use stricter regex to replace URLs

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Escape url and text

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Remove unnecessary whitespace

* Fix copy and paste mistake

Co-Authored-By: Tulir Asokan <tulir@maunium.net>

* Fix indention inconsistency

* Use Authorization header instead of url parameter

* Add raw commit information to webhook

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Tulir Asokan <tulir@maunium.net>
zeripath 7cd47046ea
Handle push rejection in branch and upload ()
* Handle push rejections and push out-of-date in branch creation and
file upload.
* Remove the duplicated sanitize from services/pull/merge
* Move the errors Err(Merge)PushOutOfDate and ErrPushRejected to
modules/git
* Handle errors better in the upload file dialogs

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Bagas Sanjaya cac30abefc
[Docs] Config Cheat Sheet: SSL_MODE Value Description ()
* Add description of SSL_MODE values

* Apply suggestions from @guillep2k

Rewording suggestions

Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
GiteaBot 7e8ced07b3 [skip ci] Updated translations via Crowdin
zeripath 1737fca220
make `gitea admin auth list` formatting configurable ()
* make admin auth list formatting configurable

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

* As per @guillep2k

Signed-off-by: Andrew Thornton <art27@cantab.net>
Success Go 8cffae65a6
Fix typo of MSSQL ()
zeripath e6baa656f7
make avatar lookup occur at image request ()
speed up page generation by making avatar lookup occur at the browser
not at page generation

* Protect against evil email address ".."

* hash the complete email address

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

Co-Authored-By: Lauris BH <lauris@nix.lv>
Lauris BH a3f90948d8
Set MySQL rowtype to dynamic for new tables ()
* Set mysql rowtype to dynamic for new tables

* Update models.go
zeripath 453f6e6e5a
In authorized_keys use double-quote for windows compatibility ()
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath cf4f2cfa3e
Fix internal server error on checkboxes ()
Annoyingly goldmarks SetAttributeString requires that
the value of the attribute is still a []byte but does
not make it clear in the documentation.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Lauris BH bbd910ed1b
Allow to set protected file patterns that can not be changed under no conditions ()
Co-Authored-By: zeripath <art27@cantab.net>
zeripath 52cfd2743c
Option to set default branch at repository creation ()
* Option to set default branch at repository creation
* Handle template repos with non-default master branch
* Add DefaultBranch handling on creation to API

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
silverwind b1c331c845
Fix repo summary height ()
Extracted the style that keeps the animation of the language bar in
check.

Fixes: https://github.com/go-gitea/gitea/issues/10754

Co-authored-by: Lauris BH <lauris@nix.lv>
Stefan Bethke e72c5cb02a
Simplify grep regexp to be more compatible ()
* Simplify grep regexp to be more compatible

The new expression also works with the BSD implementation of grep. Also,
I believe the expression did not work consistently for all possible
version numers, for example a two digit patch version would not have
been matched.

* Fix quote

* Allow for two and three part version numbers

* Select one, two and three part version numbers, reject amd64

* Also allow one to three parts for node version

* Use JS code to print node verion in correct format

* Avoid grep altogether

* Handle go1.14beta1 as well.

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
John Olheiser ad6f2323b7
Fix milestone template ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Lunny Xiao 73f5ca70de
Upgrade xorm to v1.0.1 and fix start fail with potgres ()
* upgrade xorm to v1.0.1

* fix start fail with postgres

Co-authored-by: zeripath <art27@cantab.net>
GiteaBot b10cb7b258 [skip ci] Updated translations via Crowdin
Alexander Scheel 61830ace0b
Fix tab indentation in code view ()
Resolves: 

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
zeripath 311ed516ce
log.Fatal on failure to listen to SSH port ()
Fix 
zeripath f036de5a94
Completely fix task-list checkbox styling ()
Continuing on from  this PR makes goldmark apply the task-list styling to task-lists.
Lunny Xiao c61b902538
Upgrade xorm to v1.0.0 ()
* Upgrade xorm to v1.0.0

* small nit

* Fix tests

* Update xorm

* Update xorm

* fix go.sum

* fix test

* Fix bug when dump

* Fix bug

* update xorm to latest

* Fix migration test

* update xorm to latest

* Fix import order

* Use xorm tag
Lunny Xiao dcaa5643d7
Fix branch api canPush and canMerge ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath b3f4f812d8
account for empty lines in receive-hook message ()
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
techknowlogick 2fa1078911
go 1.14 ()
Lauris BH e5a008f7b2
Add nowrap to language bar items ()
John Olheiser 7225453d5f
Update Gitea version in docs ()
Lunny Xiao 83fe7d414e
Fix bug on branch API ()
silverwind 661289d480
Move JS build dependencies to 'dependencies' ()
- move all JS build dependencies to 'dependencies'
- update all JS dependencies

Reason for this is that npm will only install 'dependencies' when under
the effect of NODE_ENV=production which may be present on some build
systems.

Linters currently need to be depdendencies because we run linting as
part of the build step, but I plan to move them to a separate 'lint'
target which means they can move to devDependencies then.

Fixes: https://github.com/go-gitea/gitea/pull/10761
Simon Legner a2809b391d
doc(authentication.en-us): remove superflous line ()
silverwind ed5140d235
disable webpack's size warnings ()
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
silverwind 85fb33a65f
move jquery-datetimepicker to npm/webpack ()
- update to latest version and move to npm
- adapt for api changes and css class rename
- add specificity to arc-green rules as dependency css now loads later
- use imports-loader to make it load correctly
- fix some wrong paths in librejs

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Lauris BH 43c09134a9
Migrate to go-git/go-git v5.0.0 ()
赵智超 2f928316db
hide gear icon for user who can't use them on sidebar ()
reason:
If user can't choose the Assignees labels and Milestone It's
not usefull to show a gear label , and it It will mislead the
user into thinking that it's a BUG rather than thy don't have
permission to chosse them.

Signed-off-by: a1012112796 <1012112796@qq.com>
Lauris BH ca181100ca
FIx hiding of fields in authorization source page ()
guillep2k 10e8da1f1a
Change PACKAGES to GO_PACKAGES for FreeBSD compatibility ()
Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
John Olheiser c7f3d1627f
Prevent default for linkAction ()
Signed-off-by: jolheiser <john.olheiser@gmail.com>
赵智超 19ebe2b956
misc: change the "taskName" to "label" in vscode tasks.json ()
because of vscode suggest
ref ISSUE: 

Signed-off-by: a1012112796 <1012112796@qq.com>
Lunny Xiao cf7ece6245
Fix queue log param ()
silverwind 28b934b3ae
Update JS dependencies ()
Result of `make npm-update`. Only notable change is that `updates` now
requires Node 10 and has been changed to a bundle, so its dependencies
are now no longer installed.
dependabot[bot] 37bd5787fc
Bump acorn from 6.4.0 to 6.4.1 ()
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Alex 460e42391e
Update border-color of language bar icon ()
* Update color of border of color-icon

* Update web_src/less/_base.less

Co-Authored-By: 6543 <6543@obermui.de>

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
8ctopus 2e5d37463e
Documentation - updated email setup ()
* Updated email setup documentation to include sendmail option

* Update docs/content/doc/usage/email-setup.en-us.md

full path to sendmail

Co-Authored-By: mrsdizzie <info@mrsdizzie.com>

* Update docs/content/doc/usage/email-setup.en-us.md

docker image does not have sendmail

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>

* Update docs/content/doc/usage/email-setup.en-us.md

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>

* Update docs/content/doc/usage/email-setup.en-us.md

Co-Authored-By: James Lakin <jamesorlakin@users.noreply.github.com>

* Update docs/content/doc/usage/email-setup.en-us.md

Co-Authored-By: James Lakin <jamesorlakin@users.noreply.github.com>

Co-authored-by: 8ctopus <hello@octopuslabs.io>
Co-authored-by: mrsdizzie <info@mrsdizzie.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: James Lakin <jamesorlakin@users.noreply.github.com>
Success Go da1633a5d4
fix miss spelling ()
silverwind e03d627769
Misc JS linting and naming tweaks ()
- lowercase all js filenames except Vue components
- enable new lint rules, mostly focused on shorter code
- autofix new lint violations
- apply misc transformations indexOf -> includes and onevent-> addEventListener

Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>