Commit Graph

21 Commits (d7494046ac8aaf3b01f0eae0039e38c6c4f9c246)

Author SHA1 Message Date
zeripath ce8de35334 Remove local clones & make hooks run on merge/edit/upload ()
* Add options to git.Clone to make it more capable

* Begin the process of removing the local copy and tidy up

* Remove Wiki LocalCopy Checkouts

* Remove the last LocalRepo helpers

* Remove WithTemporaryFile

* Enable push-hooks for these routes

* Ensure tests cope with hooks

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

* Remove Repository.LocalCopyPath()

* Move temporary repo to use the standard temporary path

* Fix the tests

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

* Remove LocalWikiPath

* Fix missing remove

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

* Use AppURL for Oauth user link ()

* Use AppURL for Oauth user link

Fix 

* Update oauth.go

* Update oauth.go

* internal/ssh: ignore env command totally ()

* ssh: ignore env command totally

* Remove commented code 

Needed fix described in issue 

* Escape the commit message on issues update and title in telegram hook ()

* update sdk to latest ()

* improve description of branch protection (fix ) ()

The branch protection description text were not quite accurate.

* Fix logging documentation ()

* ENABLE_MACARON_REDIRECT should be REDIRECT_MACARON_LOG

* Allow DISABLE_ROUTER_LOG to be set in the [log] section

* [skip ci] Updated translations via Crowdin

* Move sdk structs to modules/structs ()

* move sdk structs to moduels/structs

* fix tests

* fix fmt

* fix swagger

* fix vendor
mrsdizzie 3ff0a126e1 Improve issue autolinks ()
* Improve issue autolinks

Update autolinks to match what github does here:

Issue in same repo: 
Issue in different repo: 

Fixes 

* Use setting.AppURL when parsing URL

Using setting.AppURL here is a more reliable way of parsing the current
URL and what other functions in this file seem to use.

* Make ComposeMetas always return a valid context

* Add per repository markdown renderers for better context

* Update for use of context metas

Now that we include the user and repo name inside context metas, update
various code and tests for this new logic
Ethan Koenig e67b4055f9 Fix repo-transfer-and-team-repo-count bug ()
Lunny Xiao 52e11b24bf Restructure markup & markdown to prepare for multiple markup language… ()
* restructure markup & markdown to prepare for multiple markup languages support

* adjust some functions between markdown and markup

* fix tests

* improve the comments
Ethan Koenig b689bb6180 Webhooks for repo creation/deletion ()
* Webhooks for repo creation/deletion

* add createHookTask

* Add handles for GetSlackPayload and GetDiscordPayload
Sandro Santilli f6b58964d7 Include formatting check to the `make test` (and thus also `check`) rule ()
* Include formatting check to the `make check` rule

... and give it its own standalone target too (make fmt-check)

Show diff on fmt-check failure
Do not allow running "fmt-check" with incompatible go version
Also simplify the `fmt` rule

* Forbid running "make fmt" with Go version != 1.7 or 1.8

* Ignore bindata.go for spelling and formatting checks

also remove duplicated variable assignment for GOFILES

* Run `make fmt`
Phil Hopper 6ec07a6bd7 Make `LocalCopyPath` a setting instead of a hard-coded path ()
Bo-Yi Wu d76d67de23 feat: expose url field on issue api. ()
* Add api url func.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix: Add unit testing.

* fix: conflicts

* fix: remove trim

* fix: revert test function name.
Bo-Yi Wu e83c8afc56 refactor: move SearchRepositoryByName testing. ()
Bo-Yi Wu 83b6d03231 fix: Wrong repo list on Explore page if user already loggin. ()
* fix: Wrong repo list on Explore page if user already loggin.

* fix: code readable.

* fix: declare variable
Bo-Yi Wu 43c94d0a6c test: Add testing for GetUserFork function ()
Morgan Bazalgette 442145dbd3 Fix public activity showing private repos ()
* Fix public activity showing private repos ()

Signed-off-by: Morgan Bazalgette <the@howl.moe>

* error check after setting is_private to true

* Add test for UpdateRepository w/ visibility change
Ethan Koenig d2329e1c26 Use assert in legacy unit tests ()
Bo-Yi Wu 71d35dae8c fix: wrong pages number which includes private repository count. ()
Lunny Xiao 8a421b1fd7 Add units concept for modulable functions of a repository ()
* Add units concept for modulable functions of a repository

* remove unused comment codes & fix lints and tests

* remove unused comment codes

* use struct config instead of map

* fix lint

* rm wrong files

* fix tests
Lunny Xiao 76604d8f90 fixed test build error
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Matthias Loibl a4fa889ced Run goimports on the whole project ()
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Pablo Saavedra 98b152030d The pruning for the synchronized mirrors is a option now. Default value: enable_prune = true ()
Executed go fmt

getEngine() not handles DB parameters () ()

Uses .AllCols() for Update in updateMirror()

Spanish traslation removed

Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
Cosmin Stroe ba314a7a36 Support alphanumeric issue style (ABC-1234) for external issue tracker ()