Commit Graph

1545 Commits (dbb7715b0b08ea5ea1b8e03c624887abb140a74f)

Author SHA1 Message Date
Lunny Xiao 10b54df2b2 Add dingtalk webhook ()
* add dingtalk webhook type

* add vendor

* some fixes

* fix name check

* fix name check & improvment
Jonas Bröms 1f7aab6e19 Drop deprecated GOGS_WORK_DIR use ()
schaffman5 7e6c198f21 Apply LANDING_PAGE config options for logged in users ()
* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.

* Updated comments.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to logged in users and added switch for 'organizations' in addition to 'home' and 'explore'.

* Updated comments.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Extended LANDINGPAGE config variable to trigger when user logs in and added switch for 'organizations' in addition to 'home' and 'explore'.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Removed superfluous conditional and correct whitespace.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>

* Update app.ini

Reverted new line.

* Formatting.

Signed-off-by: Mike Schaffer <mschaff@gmail.com>
Lauris BH 7c3e605698 Fix memcache support when value is returned as string always ()
Lauris BH a6f337046f Update go-ini dependency and remove semicolon hack in translations ()
Sandro Santilli e735d8cb25 Gogs -> Gitea ()
rename label
Mura Li f4d12f8d97 Fix run command race ()
* Use exec.CommandContext to simplfy timeout handling

And fixing the data races which can be identified by the added tests when -race enabled.

* Use sleep commmand instead of reading from stdin

* Make the error handling go-esque
Jochen Rill f94e6fd7a5 Correct ldap username validation. ()
PR  was only partially applied. Spaces should not be at the start
and end of a username but they can be inside.
Lauris BH 134958fd9f
Fix localization texts that contain semicolon ()
Ethan Koenig f26f4a7e01 Update swagger documentation ()
* Update swagger documentation

Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation

* Restore delete comments
Ethan Koenig 5481be0ac5 Fix issue link rendering in commit messages ()
* Fix issue link rendering in commit messages

* Update page.tmpl

* No links for parens

* remove comment
Lauris BH ba2e0240c6
Add LFS object verification step after upload ()
* Add LFS object verification step after upload

* Fix file verification condition and small refactor

* Fix URLs

* Remove newline and return status 422 on failed verification

* Better error hadling
Lunny Xiao 62d0a4d882 Add external markup render support ()
* add external markup render support

* bug fixed

* refacotr codes and fix wrong error log

* fix comments and add check to prevent leaks

* add check for config file and improve the example

* check file close error

* use ioutil.TempFile instead uuid

* correct Render -> Parser

* improve warning when incorrect markup setting

* fix typos
Jacob Parry 6e2e7b325f Fix LFS not returning correct content length when requesting a range of bytes ()
Lunny Xiao ff9daa3e9b fix click create pull request button 404 ()
Mike Fellows be523152a8 Clean repository ROOT directory name with filepath.Clean ()
For better compatibility with Windows.
Lauris BH 57de1ff991
Fix API raw file content access for default branch ()
Lauris BH 08b124dd47
Fix API raw requests for commits and tags ()
Guillaume Dube 8798cf4e3b Set session and indexers' data files rel to AppDataPath ()
* Set session and indexers' data files rel to AppDataPath

The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.

* fix bug
Morlinest 1f04c00e2f Fix redirect url of legacy commits route ()
Cum Gun eecaba2031 Configurable SSH key exchange algorithm and MAC suite ()
Lauris BH 82fc50f4ee Fix Git LFS object/repo link storage in database and small refactoring ()
Ethan Koenig 513375c429 Make URL scheme unambiguous ()
* Make URL scheme unambiguous

Redirect old routes to new routes

* Fix redirects to new URL scheme, and update template

* Fix branches/_new endpoints, and update integration test
Ethan Koenig 5866eb2321 Code/repo search ()
Indexed search of repository contents (for default branch only)
Lauris BH eca05b09aa Add commit count caching ()
* Add commit count caching

* Small refactoring

* Add different key prefix for refs and commits

* Add configuratuion option to allow to change caching time or disable it
Bwko 3ab580c8d6 Add branch overiew page ()
* Add branch overiew page

* fix changed method name on sub menu

* remove unused code
Jonas Bröms e86a0bf3fe Add support for extra sendmail arguments ()
* Add support for extra sendmail arguments

* Sendmail args to exec.command should be a list

* Add go-shellquote package

* Use go-shellquote lib for parsing Sendmail args

* Only parse if sendmail is configured
Michael Kuhn 3af5b67ed0 Sync MaxGitDiffLineCharacters with conf/app.ini ()
MAX_GIT_DIFF_LINE_CHARACTERS was updated in  but the corresponding
default value of MaxGitDiffLineCharacters was not changed. This can lead
to inconsistencies.
Piotr Orzechowski b0f04e7593 Fix Polish language name spelling ()
Lunny Xiao 6eeadb2082 Hide unactive on explore users and some refactors ()
* hide unactive on explore users and some refactors

* fix test for removed Organizations

* fix test for removed Organizations

* fix imports

* fix logic bug

* refactor the toConds

* Rename TestOrganizations to TestSearchUsers and add tests for users

* fix other tests

* fix other tests

* fix watchers tests

* fix comments and remove unused code
Lunny Xiao 03900303a9 add default ssh ciphers ()
harry 81d1e54a49 Use identicon image for default gravatar. ()
* Use identicon image for default gravatar.

* Fixed tests.
spacetourist 7131c7d40d Configurable SSH cipher suite ()
* Configurable SSH cipher suite

* Update configuration file comment

* Add default in settings loading code

* Fix fmt and log messsage

* Remove default from code as this could probably might not be good idea
Lunny Xiao 985a39590b Use buffersize to reduce database connection when iterate ()
* use buffersize to reduce database connection when iterate

* fix typo

* add default value on app.ini comment
Jonas Bröms d4c9399576 Set default lfs content path ()
Lauris BH f3833b7ce4 Create new branch from branch selection dropdown ()
* Create new branch from branch selection dropdown and rewrite it to VueJS

* Make updateLocalCopyToCommit as not exported

* Move branch name validation to model

* Fix possible race condition
Lauris BH 1ec4dc6c1d Fix so that user can still fork his own repository to owned organizations ()
* Fix so that user can still fork his own repository to his organizations

* Fix to only use owned organizations

* Add integration test for forking own repository to owned organization
Lauris BH f42dbdbae5 Add Activity page to repository ()
* Add Activity page to repository

* Add request data for activity

* Add issue data for activity

* Add user unit right checks

* Add releases to activity

* Log repository unit loading error
Patrick G e89bb7ef6a Allow custom SSH user in UI for built-in SSH server () ()
* Allow custom SSH user in UI for built-in SSH server ()

* Some fixes

* Did make fmt

* Updated according to review

- Renamed config to BUILTIN_SSH_SERVER_USER
- Removed unnecessary default string value for config item

* Updated according to review

* Fixed some minor issues
Ethan Koenig 67e1c29dc5 Refactor duplicated code in repo handlers ()
* Refactor duplicated code in repo handlers

* ctx.Handle
Lauris BH 46cc45f049 Fix go get response if only app URL is custom in configuration ()
* Fix go get response if only app URL is custom in configuration

* Rewrite to update Domain setting to match AppURL
Ethan Koenig fa28de820e Make indexer code more reusable ()
Lunny Xiao 2ef8b8bcbe fix go get subpackage bug ()
* fix go get subpackage bug

* merge the duplicated funtions
Ethan Koenig ccff57103a Automatically regenerate indexer for incompatible versions ()
David Schneiderbauer 1eedd983ea Complete push webhooks ()
* implemented missing 'delete' push webhooks

moreover created ActionDeleteBranch and ActionDeleteTag

* add CommitRepoAction tests for tag/branch creation/deletion

* fixed error where push webhook not called if is new branch or tag
removed unnecessary code

* moved prepare unit test environment into separate method to be used across unit tests

* add missing if clause in pushUpdate

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Lunny Xiao 0d80af649a Add init support of orgmode document type on file view and readme ()
* add init support of orgmode document type on file view and readme

* fix imports

* fix imports and readmeExist

* fix imports order

* fix format

* remove unnecessary convert
Rémi Saurel 66bc0ac251 Fix sending mail with a non-latin display name. ()
* Fix sending mail with a non-latin display name. 

Signed-off-by: Rémi Saurel <contact@remi-saurel.com>

* Take into account the possibility that setting.MailService.From is in `name <email@address>` format. 

Signed-off-by: Rémi Saurel <contact@remi-saurel.com>
Lauris BH 7a0297819d Sync releases table with tags on push and for mirrors ()
* Sync releases table with tags on push and for mirrors

* Code style fixes

* Fix api to return only releases

* Optimize release creation and update
Minimize posibility of race conditions

* Fix release lower tag name updating

* handle tag reference update by addionally comparing commit id
Ethan Koenig acecedc410 Use named ActionType constants in template helper ()
Ethan Koenig a1ed239bf2 Fix fmt errors ()