]>
source.dussan.org Git - gitea.git/log
silverwind [Wed, 15 May 2019 16:50:14 +0000 (18:50 +0200)]
use relative paths to node bin scripts, removing npx
techknowlogick [Wed, 15 May 2019 16:18:19 +0000 (12:18 -0400)]
Run lessc binary without having to install anything to node_modules
techknowlogick [Wed, 15 May 2019 15:54:36 +0000 (11:54 -0400)]
Merge branch 'master' into make-targets
GiteaBot [Wed, 15 May 2019 15:52:29 +0000 (15:52 +0000)]
[skip ci] Updated translations via Crowdin
techknowlogick [Wed, 15 May 2019 15:25:43 +0000 (11:25 -0400)]
Merge branch 'master' into make-targets
zeripath [Wed, 15 May 2019 15:24:39 +0000 (16:24 +0100)]
SearchRepositoryByName improvements and unification (#6897)
silverwind [Wed, 15 May 2019 15:15:40 +0000 (17:15 +0200)]
move functions used in html to 'exported' list
silverwind [Wed, 15 May 2019 15:11:43 +0000 (17:11 +0200)]
fix indentation
techknowlogick [Wed, 15 May 2019 12:01:53 +0000 (08:01 -0400)]
Webhook Logs show proper HTTP Method, and allow change HTTP method in form (#6953)
* Fix #6951 - logs show proper HTTP Method, and allow change HTTP method
in form
* enforce POST method for webhook
* set default if method is empty
Lunny Xiao [Wed, 15 May 2019 01:57:00 +0000 (09:57 +0800)]
Refactor models.NewRepoContext to extract git related codes to modules/git (#6941)
* refactor models.NewRepoContext to extract git related codes to modules/git
* fix imports
* refactor
silverwind [Tue, 14 May 2019 22:14:25 +0000 (00:14 +0200)]
add make targets for js,css, add javascript linter
- add `make js`, deprecating `make javascripts`
- add `make css`, deprecating `make generate-stylesheets` and
`make stylesheets-check`
- changed the unclean css check to only run on CI
- add JS linting via eslint with basic configuration and fixed
discovered issues
- changed autoprefixer to use official `postcss-cli` avoiding the need
to loop in the makefile
- moved browserslist to package.json so other future tools can use it
too.
- update documentation for new make targets and added JS section
Xaver Maierhofer [Tue, 14 May 2019 16:02:59 +0000 (18:02 +0200)]
Fix code overflow (#6914)
zeripath [Tue, 14 May 2019 15:20:35 +0000 (16:20 +0100)]
Add work path CLI option (#6922)
Makes it possible to set the work path as a CLI option instead of
relying on environment variables which are somewhat opaque
James E. Blair [Tue, 14 May 2019 14:40:27 +0000 (07:40 -0700)]
Ignore non-standard refs in git push (#6758)
When replicating to gitea from a remote system which makes use of
git refs to store extra data (for example, gerrit), pushing a lot
of refs to gitea can cause problems due to the extra processing
that the pre and post receive hooks perform. But it's still
useful for gitea to be able to serve those refs. This change
skips unecessary processing of refs other than branches or tags.
We don't need to check any ref that isn't a branch for branch
protection (protection will never be enabled). So in the
pre-receive hook, we wrap that check in a test for whether the
ref is a branch.
We also don't need to add information to the activity stream about
pushes to non-standard refs, so we skip that step in the
post-receive hook for refs which are not branches or tags.
For some concrete examples, gerrit maintains a ref for every
patchset of every change in the form refs/changes/XX/YYYY/Z.
Many systems use refs/notes to store additonal data about commits.
This change allows these and other schemes to be used without
affecting gitea.
Lunny Xiao [Tue, 14 May 2019 13:52:18 +0000 (21:52 +0800)]
Remove macaron dependent on models (#6940)
Lunny Xiao [Tue, 14 May 2019 07:04:07 +0000 (15:04 +0800)]
Move xorm logger bridge from log to models so that log module could be a standalone package (#6944)
* move xorm logger bridge from log to models so that log module could be a standalone package
* fix tests
* save logger on xorm log bridge
Xaver Maierhofer [Tue, 14 May 2019 04:11:22 +0000 (06:11 +0200)]
Fix plain text overflow line wrap (#6915)
Lunny Xiao [Tue, 14 May 2019 02:55:52 +0000 (10:55 +0800)]
Remove macaron dependent on modules/log (#6933)
Xaver Maierhofer [Tue, 14 May 2019 00:54:23 +0000 (02:54 +0200)]
Add less linter via npx (#6936)
zeripath [Tue, 14 May 2019 00:08:34 +0000 (01:08 +0100)]
rotate unusual logs and stop stacktracing (#6935)
Lunny Xiao [Mon, 13 May 2019 22:53:54 +0000 (06:53 +0800)]
remove macaron dependent on models/mail.go (#6931)
Jakob Ackermann [Mon, 13 May 2019 22:19:38 +0000 (00:19 +0200)]
[docker] support for custom GITEA_CUSTOM env var (#6608)
Xaver Maierhofer [Mon, 13 May 2019 20:52:59 +0000 (22:52 +0200)]
Style orgs list in user profile (#6911)
Xaver Maierhofer [Mon, 13 May 2019 19:25:21 +0000 (21:25 +0200)]
Use single line per selector & don't strip license comments (#6919)
GiteaBot [Mon, 13 May 2019 15:41:18 +0000 (15:41 +0000)]
[skip ci] Updated translations via Crowdin
Tamal Saha [Mon, 13 May 2019 15:38:53 +0000 (08:38 -0700)]
Handle CORS requests (#6289)
Xaver Maierhofer [Mon, 13 May 2019 06:26:32 +0000 (08:26 +0200)]
Clean less files (#6921)
Mura Li [Mon, 13 May 2019 05:06:47 +0000 (13:06 +0800)]
Use modules/git for git commands (#6775)
techknowlogick [Sun, 12 May 2019 17:29:07 +0000 (13:29 -0400)]
Change drone token name to let users know to use oauth2 (#6912)
GiteaBot [Sun, 12 May 2019 11:13:32 +0000 (11:13 +0000)]
[skip ci] Updated translations via Crowdin
Xaver Maierhofer [Sun, 12 May 2019 11:10:12 +0000 (13:10 +0200)]
Fix input size for dependency select (#6913)
iliyan ivanov [Sat, 11 May 2019 20:27:39 +0000 (23:27 +0300)]
fix syntax highlight in blame view #6895 (#6909)
zeripath [Sat, 11 May 2019 15:29:17 +0000 (16:29 +0100)]
Remove local clones & make hooks run on merge/edit/upload (#6672)
* 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 (#6894)
* Use AppURL for Oauth user link
Fix #6843
* Update oauth.go
* Update oauth.go
* internal/ssh: ignore env command totally (#6825)
* ssh: ignore env command totally
* Remove commented code
Needed fix described in issue #6889
* Escape the commit message on issues update and title in telegram hook (#6901)
* update sdk to latest (#6903)
* improve description of branch protection (fix #6886) (#6906)
The branch protection description text were not quite accurate.
* Fix logging documentation (#6904)
* 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 (#6905)
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
Lunny Xiao [Sat, 11 May 2019 10:21:34 +0000 (18:21 +0800)]
Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
GiteaBot [Sat, 11 May 2019 09:16:08 +0000 (09:16 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Sat, 11 May 2019 09:13:57 +0000 (10:13 +0100)]
Fix logging documentation (#6904)
* ENABLE_MACARON_REDIRECT should be REDIRECT_MACARON_LOG
* Allow DISABLE_ROUTER_LOG to be set in the [log] section
Jannik Beyerstedt [Sat, 11 May 2019 07:42:19 +0000 (09:42 +0200)]
improve description of branch protection (fix #6886) (#6906)
The branch protection description text were not quite accurate.
techknowlogick [Fri, 10 May 2019 20:49:29 +0000 (16:49 -0400)]
update sdk to latest (#6903)
zeripath [Fri, 10 May 2019 17:48:28 +0000 (18:48 +0100)]
Escape the commit message on issues update and title in telegram hook (#6901)
Antoine GIRARD [Thu, 9 May 2019 22:41:43 +0000 (00:41 +0200)]
internal/ssh: ignore env command totally (#6825)
* ssh: ignore env command totally
* Remove commented code
Needed fix described in issue #6889
techknowlogick [Thu, 9 May 2019 17:22:35 +0000 (13:22 -0400)]
Use AppURL for Oauth user link (#6894)
* Use AppURL for Oauth user link
Fix #6843
* Update oauth.go
* Update oauth.go
Richard Mahn [Wed, 8 May 2019 19:17:32 +0000 (15:17 -0400)]
Fixes #6881 - API users search fix (#6882)
John Olheiser [Wed, 8 May 2019 16:21:24 +0000 (11:21 -0500)]
1.8.1 changelog (#6877) (#6878)
* New and improved
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add backport/original PR numbers
Change wording for 500 error
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Wim [Wed, 8 May 2019 08:41:35 +0000 (10:41 +0200)]
Show full name if DefaultShowFullName setting activated (#6710)
Adds a new key DEFAULT_SHOW_FULL_NAME (default false) to the [ui] section.
If enabled the full name will be shown (unless it's empty, then
the default username will be used)
GiteaBot [Wed, 8 May 2019 07:53:17 +0000 (07:53 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Wed, 8 May 2019 07:50:15 +0000 (15:50 +0800)]
Change the color of issues/pulls list, merged is purple and closed is red (#6874)
techknowlogick [Tue, 7 May 2019 20:53:45 +0000 (16:53 -0400)]
Add documentation for OTP/2FA header in API for basic auth (#6872)
GiteaBot [Tue, 7 May 2019 17:23:26 +0000 (17:23 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Tue, 7 May 2019 17:20:23 +0000 (01:20 +0800)]
Fix 404 when send pull request some situation (#6871)
GiteaBot [Tue, 7 May 2019 01:14:01 +0000 (01:14 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Tue, 7 May 2019 01:12:51 +0000 (09:12 +0800)]
Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290)
* add migrations
* fix package dependency
* fix lints
* implements migrations except pull requests
* add releases
* migrating releases
* fix bug
* fix lint
* fix migrate releases
* fix tests
* add rollback
* pull request migtations
* fix import
* fix go module vendor
* add tests for upload to gitea
* more migrate options
* fix swagger-check
* fix misspell
* add options on migration UI
* fix log error
* improve UI options on migrating
* add support for username password when migrating from github
* fix tests
* remove comments and fix migrate limitation
* improve error handles
* migrate API will also support migrate milestones/labels/issues/pulls/releases
* fix tests and remove unused codes
* add DownloaderFactory and docs about how to create a new Downloader
* fix misspell
* fix migration docs
* Add hints about migrate options on migration page
* fix tests
GiteaBot [Mon, 6 May 2019 19:51:02 +0000 (19:51 +0000)]
[skip ci] Updated translations via Crowdin
Antoine GIRARD [Mon, 6 May 2019 19:48:08 +0000 (21:48 +0200)]
Enforce osusergo build tag for releases (#6862)
Lauris BH [Mon, 6 May 2019 18:43:40 +0000 (21:43 +0300)]
Refactor table width to have more info shown in file list (#6867)
* Refactor table width to have more info shown in file list
* Remove unnecesary semicolon
* Fix tests for changed html structure
Lunny Xiao [Mon, 6 May 2019 14:35:11 +0000 (22:35 +0800)]
fix config ui error about cache ttl (#6861)
GiteaBot [Mon, 6 May 2019 12:18:49 +0000 (12:18 +0000)]
[skip ci] Updated translations via Crowdin
Lunny Xiao [Mon, 6 May 2019 12:09:31 +0000 (20:09 +0800)]
fix 500 when reviewer is deleted with integration tests (#6856)
Jakob Ackermann [Mon, 6 May 2019 02:49:32 +0000 (04:49 +0200)]
[docker] drop the docker Makefile from the image (#6507)
zeripath [Sun, 5 May 2019 23:42:29 +0000 (00:42 +0100)]
Add mssql migration tests (#6852)
GiteaBot [Sun, 5 May 2019 19:42:06 +0000 (19:42 +0000)]
[skip ci] Updated translations via Crowdin
mrsdizzie [Sun, 5 May 2019 19:39:10 +0000 (15:39 -0400)]
Don't post process commit summary in templates (#6842)
* Don't post process commit summary in templates
Don't run summary through render/post process to avoid it generating
links and breaking certain views where the summary is already expected
to be a link to the commit. For consistancy, disable processing of
summary in all locations.
Fixes #6809
* Do process title on diff page
On second thought, the title is often the only place a pull request
number will exists so do process it on the individual diff page. This
fixes the list view and still gives easy access to the PR link
GiteaBot [Sun, 5 May 2019 18:59:35 +0000 (18:59 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Sun, 5 May 2019 18:58:49 +0000 (19:58 +0100)]
Attempt to fix #6707 (#6823)
Simon [Sun, 5 May 2019 18:09:02 +0000 (20:09 +0200)]
Add GET requests to webhook (#6771)
* Add GET requests to webhook
* make fmt
* Handle invalid http method on webhook
* Uppercase http method in webhook
* Rename v85.go to v86.go
* make fmt
Mario Lubenka [Sun, 5 May 2019 16:25:25 +0000 (18:25 +0200)]
Number of commits ahead/behind in branch overview (#6695)
* Call Git API to determine divergence of a branch and its base branch
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Show commit divergance in branch list
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds missing comment
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adds test for diverging commits
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Try comparing commits instead of branches
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Removes test as CI can't run it
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Adjusts signature of percentage function to allow providing multiple integers as numerator
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Moves CountDivergingCommits function into repofiles module
Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
GiteaBot [Sun, 5 May 2019 13:49:50 +0000 (13:49 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Sun, 5 May 2019 13:47:42 +0000 (14:47 +0100)]
Fix v85.go: Set UNIQUE constraint later (#6851)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Songlin Yang [Sun, 5 May 2019 09:46:32 +0000 (17:46 +0800)]
docs(*): fix codecov bad links in README_ZH (#6850)
ngourdon [Sat, 4 May 2019 22:44:43 +0000 (00:44 +0200)]
add french specific rule for translating plural texts (#6846)
Lanre Adelowo [Sat, 4 May 2019 22:03:10 +0000 (23:03 +0100)]
Generate access token in admin cli (#6847)
* add cli flag for access token while creating a user
Lauris BH [Sat, 4 May 2019 20:32:37 +0000 (23:32 +0300)]
Improve localization of git activity stats (#6848)
techknowlogick [Sat, 4 May 2019 15:45:34 +0000 (11:45 -0400)]
Hash App token (#6724)
Lauris BH [Sat, 4 May 2019 12:39:03 +0000 (15:39 +0300)]
Git statistics in Activity tab (#4724)
* Initial implementation for git statistics in Activity tab
* Create top user by commit count endpoint
* Add UI and update src-d/go-git dependency
* Add coloring
* Fix typo
* Move git activity stats data extraction to git module
* Fix message
* Add git code stats test
Antoine GIRARD [Fri, 3 May 2019 12:49:14 +0000 (14:49 +0200)]
Update https://github.com/urfave/cli to version 1.2.0 (#6838)
From un-tagged pervious version : https://github.com/urfave/cli/compare/
d86a009f5e13 ...master
Filip Navara [Fri, 3 May 2019 00:33:11 +0000 (02:33 +0200)]
Fix #6813: Allow git.GetTree to take both commit and tree names (#6816)
* Allow git.GetTree to take both commit and tree names, return full paths on entries listed through Tree.ListEntriesRecursive
Signed-off-by: Filip Navara <filip.navara@gmail.com>
* Fix the SHA returned on Git Tree APIs called with commit hash or symbolic name
Signed-off-by: Filip Navara <filip.navara@gmail.com>
kolaente [Thu, 2 May 2019 22:41:54 +0000 (00:41 +0200)]
Drone: Do full branch clone and get tags for correct version hashes (#6836)
Although #591 attempted to make version hashes be preceded with tag names on our branch builds, it would fail again silently at 50 commits because we were not cloning the full branch. Drone's new plugin will do a single branch clone by default meaning that depth is no longer necessary.
GiteaBot [Thu, 2 May 2019 20:30:21 +0000 (20:30 +0000)]
[skip ci] Updated translations via Crowdin
SagePtr [Thu, 2 May 2019 20:06:01 +0000 (22:06 +0200)]
Fix double-generation of scratch token (#6832) (#6833)
zeripath [Thu, 2 May 2019 13:09:39 +0000 (14:09 +0100)]
Allow Recaptcha service url to be configured (#6820)
zeripath [Thu, 2 May 2019 06:43:20 +0000 (07:43 +0100)]
When mirroring we should set the remote to mirror (#6824)
techknowlogick [Thu, 2 May 2019 02:32:06 +0000 (22:32 -0400)]
Rename LFS_JWT_SECRET to include OAUTH2 as well (#6826)
John Olheiser [Wed, 1 May 2019 20:36:09 +0000 (15:36 -0500)]
Change verbose flag in dump command to avoid colliding with global version flag (#6822)
* Change verbose flag to avoid colliding with version flag
* Update docs
Signed-off-by: jolheiser <john.olheiser@gmail.com>
mrsdizzie [Wed, 1 May 2019 16:21:05 +0000 (12:21 -0400)]
Improve issue reference on commit (#6694)
* Improve issue reference on commit
Allow commits to properly reference issues in other repositories and also to
close/reopen those issues if user has code permission. Should match
Github behavior described here: https://help.github.com/en/articles/closing-issues-using-keywords
Fixes 6664
* Fix missing return
* Match user/repo directly in regex
Lunny Xiao [Wed, 1 May 2019 15:44:16 +0000 (23:44 +0800)]
update github.com/mcuadros/go-version to v0.0.0-
20190308113854 -
92cdf37c5b75 (#6815)
Antoine GIRARD [Tue, 30 Apr 2019 17:50:17 +0000 (19:50 +0200)]
Add existing issues (#6811)
GiteaBot [Tue, 30 Apr 2019 13:30:05 +0000 (13:30 +0000)]
[skip ci] Updated translations via Crowdin
Filip Navara [Tue, 30 Apr 2019 13:27:41 +0000 (15:27 +0200)]
Remove `seen` map from `getLastCommitForPaths` (#6807)
Ensures correctly traversing the commit graph for all path and avoids
erroneously skipping some. Also preallocate some arrays to correct size
to prevent unnecessary reallocations.
Fixes #6708.
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Lauris BH [Mon, 29 Apr 2019 20:08:04 +0000 (23:08 +0300)]
Show scrollbar only when needed (#6802)
silverwind [Mon, 29 Apr 2019 18:49:59 +0000 (20:49 +0200)]
UI: Tweak tab text and icon colors (#6760)
This adds a hover highlight and fades out the icon on inactive tabs.
zeripath [Mon, 29 Apr 2019 18:08:21 +0000 (19:08 +0100)]
Make CustomPath, CustomConf and AppWorkPath configurable at build (#6631)
GiteaBot [Mon, 29 Apr 2019 01:47:24 +0000 (01:47 +0000)]
[skip ci] Updated translations via Crowdin
techknowlogick [Mon, 29 Apr 2019 01:45:05 +0000 (21:45 -0400)]
Service worker js is a missing comma (#6788)
Fix #6787
GiteaBot [Sun, 28 Apr 2019 19:50:49 +0000 (19:50 +0000)]
[skip ci] Updated translations via Crowdin
Nicola Scattaglia [Sun, 28 Apr 2019 19:48:46 +0000 (21:48 +0200)]
Restore IsWindows variable assignment (#6722) (#6790)
Signed-off-by: Nicola Scattaglia <scattaglia.nicola.work@gmail.com>
ngourdon [Sun, 28 Apr 2019 13:53:55 +0000 (15:53 +0200)]
Set user search base field optional in DLDAP edit page (#6779)
Zer00CooL [Sun, 28 Apr 2019 00:07:55 +0000 (02:07 +0200)]
README WordPress the code is overflowing #6679 (#6696)
ngourdon [Sat, 27 Apr 2019 23:32:33 +0000 (01:32 +0200)]
Fix team edit API panic (#6780)
Lukas Prettenthaler [Fri, 26 Apr 2019 15:01:54 +0000 (17:01 +0200)]
LDAP: ignore already existing public keys after ldap sync (#6766)
* fix type in public key exist error, only log trace for ldap public key import if existing
Signed-off-by: Lukas Prettenthaler <lukas@noenv.com>
* cleanup switch statement
Signed-off-by: Lukas Prettenthaler <lukas@noenv.com>
* replace switch with if, fix log formatting
Signed-off-by: Lukas Prettenthaler <lukas@noenv.com>
* fix formatting
Signed-off-by: Lukas Prettenthaler <lukas@noenv.com>
zeripath [Fri, 26 Apr 2019 12:00:30 +0000 (13:00 +0100)]
UI: Detect and restore encoding and BOM in content (#6727)
* detect and remove a decoded BOM
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Restore the previous encoding and BOM
* On error keep as UTF-8
Signed-off-by: Andrew Thornton <art27@cantab.net>
* create remove BOM function
* Deal with LFSed content
* Update modules/repofiles/update.go
* Fix final LFS bug
* Keep LFS sections referring to opts.Content
Lunny Xiao [Fri, 26 Apr 2019 03:03:39 +0000 (11:03 +0800)]
fix pulls broken when fork repository deleted (#6754)
* fix pulls broken when fork repository deleted
* fix lint