]>
source.dussan.org Git - gitea.git/log
Gusted [Sun, 23 Jan 2022 17:02:15 +0000 (17:02 +0000)]
Don't underline commit status icon on hover (#18372)
- Don't underline the commit status icon, as it isn't a link per-se.
Dr. Tobias Quathamer [Sun, 23 Jan 2022 13:46:30 +0000 (14:46 +0100)]
Add packagist webhook (#18224)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang [Sun, 23 Jan 2022 12:19:49 +0000 (20:19 +0800)]
Fix mime-type detection for HTTP server (#18370)
Bypass the unstable behavior of Golang's mime.TypeByExtension
Lunny Xiao [Sun, 23 Jan 2022 05:57:52 +0000 (13:57 +0800)]
Always use git command but not os.Command (#18363)
Lunny Xiao [Sun, 23 Jan 2022 05:03:26 +0000 (13:03 +0800)]
Add deprecated for LFS_CONTENT_PATH on zh-cn docs (#18362)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
GiteaBot [Sun, 23 Jan 2022 00:28:40 +0000 (00:28 +0000)]
[skip ci] Updated translations via Crowdin
Gusted [Sat, 22 Jan 2022 21:59:34 +0000 (21:59 +0000)]
Make gitea, gitea-vet future-proof (#18361)
* Make gitea, gitea-vet future-proof
- Ref: https://gitea.com/gitea/gitea-vet/pulls/18
* Correct order
Co-authored-by: zeripath <art27@cantab.net>
zeripath [Sat, 22 Jan 2022 21:22:14 +0000 (21:22 +0000)]
Pause queues (#15928)
* Start adding mechanism to return unhandled data
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Create pushback interface
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add Pausable interface to WorkerPool and Manager
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Implement Pausable and PushBack for the bytefifos
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Implement Pausable and Pushback for ChannelQueues and ChannelUniqueQueues
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Wire in UI for pausing
Signed-off-by: Andrew Thornton <art27@cantab.net>
* add testcases and fix a few issues
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix build
Signed-off-by: Andrew Thornton <art27@cantab.net>
* prevent "race" in the test
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix jsoniter mismerge
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix conflicts
Signed-off-by: Andrew Thornton <art27@cantab.net>
* fix format
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add warnings for no worker configurations and prevent data-loss with redis/levelqueue
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use StopTimer
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Gusted [Sat, 22 Jan 2022 18:32:35 +0000 (18:32 +0000)]
Disable content sniffing on `PlainTextBytes` (#18359)
- Disable the browser's function to "sniff" for the content-type on the
provided plain text, this will prevent the possible usage of
user-controlled data being sent, which could be malicious.
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
6543 [Sat, 22 Jan 2022 17:01:40 +0000 (18:01 +0100)]
Update github.com/duo-labs/webauthn (#18357)
wxiaoguang [Sat, 22 Jan 2022 15:05:22 +0000 (23:05 +0800)]
Fix route wrap (#18360)
GiteaBot [Sat, 22 Jan 2022 00:28:20 +0000 (00:28 +0000)]
[skip ci] Updated translations via Crowdin
qwerty287 [Fri, 21 Jan 2022 17:59:26 +0000 (18:59 +0100)]
Add config options to hide issue events (#17414)
* Add config option to hide issue events
Adds a config option `HIDE_ISSUE_EVENTS` to hide most issue events (changed labels, milestones, projects...) on the issue detail page.
If this is true, only the following events (comment types) are shown:
* plain comments
* closed/reopned/merged
* reviews
* Make configurable using a list
* Add docs
* Add missing newline
* Fix merge issues
* Allow changes per user settings
* Fix lint
* Rm old docs
* Apply suggestions from code review
* Use bitsets
* Rm comment
* fmt
* Fix lint
* Use variable/constant to provide key
* fmt
* fix lint
* refactor
* Add a prefix for user setting key
* Add license comment
* Add license comment
* Update services/forms/user_form_hidden_comments.go
Co-authored-by: Gusted <williamzijl7@hotmail.com>
* check len == 0
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: 6543 <6543@obermui.de>
silverwind [Fri, 21 Jan 2022 15:42:38 +0000 (07:42 -0800)]
Add js vendor directory to .gitattributes (#18350)
GiteaBot [Fri, 21 Jan 2022 00:30:19 +0000 (00:30 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Thu, 20 Jan 2022 21:52:56 +0000 (21:52 +0000)]
Refactor jwt.StandardClaims to RegisteredClaims (#18344)
* Refactor jwt.StandardClaims to RegisteredClaims
go-jwt/jwt has deprecated the StandardClaims interface to use RegisteredClaims
instead. This PR migrates to use this new format.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Apply suggestions from code review
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
6543 [Thu, 20 Jan 2022 17:46:10 +0000 (18:46 +0100)]
format with gofumpt (#18184)
* gofumpt -w -l .
* gofumpt -w -l -extra .
* Add linter
* manual fix
* change make fmt
Gusted [Thu, 20 Jan 2022 17:00:38 +0000 (18:00 +0100)]
Enable deprecation error for v1.17.0 (#18341)
Co-authored-by: Andrew Thornton <art27@cantab.net>
Gusted [Thu, 20 Jan 2022 15:18:46 +0000 (16:18 +0100)]
Use correct translation key for errors (#18342)
- Noted by:
https://github.com/go-gitea/gitea/issues/17876#issuecomment-
1017503614
wxiaoguang [Thu, 20 Jan 2022 11:41:25 +0000 (19:41 +0800)]
Refactor Router Logger (#17308)
Make router logger more friendly, show the related function name/file/line.
[BREAKING]
This PR substantially changes the logging format of the router logger. If you use this logging for monitoring e.g. fail2ban you will need to update this to match the new format.
Jelle Hulter [Thu, 20 Jan 2022 09:59:15 +0000 (10:59 +0100)]
Updated Chroma to v0.10.0 (#18270)
zeripath [Thu, 20 Jan 2022 02:41:59 +0000 (02:41 +0000)]
Change initial TrustModel to committer (#18335)
Gusted [Thu, 20 Jan 2022 00:31:39 +0000 (01:31 +0100)]
refactor httplib (#18338)
- Remove a lot of unused code(most if not all were introduced in gogs
for webhooks usages).
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath [Wed, 19 Jan 2022 23:26:57 +0000 (23:26 +0000)]
Propagate context and ensure git commands run in request context (#17868)
This PR continues the work in #17125 by progressively ensuring that git
commands run within the request context.
This now means that the if there is a git repo already open in the context it will be used instead of reopening it.
Signed-off-by: Andrew Thornton <art27@cantab.net>
Grzegorz Alibożek [Wed, 19 Jan 2022 21:55:17 +0000 (22:55 +0100)]
Upgrade Alpine from 3.13 to 3.15 (#18050)
* Upgrade alpine to 3.15
* Add executability test to entrypoint for too old dockers
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update docker/rootless/usr/local/bin/docker-entrypoint.sh
Co-authored-by: zeripath <art27@cantab.net>
GiteaBot [Wed, 19 Jan 2022 21:28:43 +0000 (21:28 +0000)]
[skip ci] Updated translations via Crowdin
zeripath [Wed, 19 Jan 2022 21:03:15 +0000 (21:03 +0000)]
Stop trimming preceding and suffixing spaces from editor filenames (#18334)
* Stop trimming preceding and suffixing spaces from editor filenames
In #5702 it was decided to trim preceding and suffixed spaces aswell as / from
editing file filenames. This was because at this point in time the url-safety of
Gitea was much poorer.
We can now drop this requirement and file editing should work correctly.
Fix #18176
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Wed, 19 Jan 2022 20:29:22 +0000 (20:29 +0000)]
[skip ci] Updated translations via Crowdin
silverwind [Wed, 19 Jan 2022 19:25:08 +0000 (11:25 -0800)]
Left-Align text in Unicode warning boxes (#18331)
Wrapped text is more readable when left-aligned.
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
zeripath [Wed, 19 Jan 2022 19:24:15 +0000 (19:24 +0000)]
Only warn on bidi but still escape non-bidi (#18333)
Fix #18324
Signed-off-by: Andrew Thornton <art27@cantab.net>
wxiaoguang [Wed, 19 Jan 2022 19:05:06 +0000 (03:05 +0800)]
Fix incorrect OAuth message (#18332)
As the title,
Fix #18327
GiteaBot [Wed, 19 Jan 2022 18:28:18 +0000 (18:28 +0000)]
[skip ci] Updated translations via Crowdin
techknowlogick [Wed, 19 Jan 2022 17:08:23 +0000 (12:08 -0500)]
Changelog for 1.16.0-rc1 (#18309)
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
zeripath [Tue, 18 Jan 2022 23:26:42 +0000 (23:26 +0000)]
Restore propagation of ErrDependenciesLeft (#18325)
Unfortunately #17643 prevented all propagation of ErrDependenciesLeft meaning
that dependency errors that prevent closing of issues get swallowed.
This PR restores propagation of the error but instead swallows the error in the
places where it needs to be swallowed.
Fix #18223
Signed-off-by: Andrew Thornton <art27@cantab.net>
wxiaoguang [Tue, 18 Jan 2022 17:28:38 +0000 (01:28 +0800)]
Fix PR comments UI (#18323)
Closes:
* Review comment cannot be edited #17768
* Changing PR Comment Resolved State Disables Further Changes #18315
wxiaoguang [Tue, 18 Jan 2022 16:57:57 +0000 (00:57 +0800)]
Make the height of the editor in Review Box smaller (4 lines as GitHub) (#18319)
And shrink the height of Dropzone.
Gusted [Tue, 18 Jan 2022 16:12:10 +0000 (16:12 +0000)]
Fix commit links on compare page (#18310)
* Fix commit links on compare page
- Use the correct repo link for each commit(the headrepo). As for
compare pages were baserepo != headrepo, it wouldn't have the correct
link.
Co-authored-by: zeripath <art27@cantab.net>
silverwind [Tue, 18 Jan 2022 15:01:36 +0000 (07:01 -0800)]
Update JS dependencies, remove eslint-plugin-github (#18317)
- Update all JS dependencies
- Add new lint rules
- Regenerate SVGs
- Tested Monaco and Mermaid
* Remove eslint-plugin-github
Peter Gardfjäll [Tue, 18 Jan 2022 13:18:30 +0000 (14:18 +0100)]
Add MirrorUpdated field to Repository API type (#18267)
Add the last update time to the repository api type.
Close #18266
zeripath [Tue, 18 Jan 2022 11:04:24 +0000 (11:04 +0000)]
replace satori/go.uuid with gofrs/uuid (#18311)
Signed-off-by: Andrew Thornton <art27@cantab.net>
JonRB [Tue, 18 Jan 2022 10:28:45 +0000 (10:28 +0000)]
Place inline diff comment dialogs in the 4th column. (#18321)
Comment dialogs for inline comments should appear in 4th column (not 3rd column), this PR changes the column that the inline review comment is associated with.
This problem has occurred due to an unrecognised conflict between #17562 and #17315.
Fix as zeripath suggested in #18320
Fix #18320
Co-authored-by: zeripath <art27@cantab.net>
zeripath [Tue, 18 Jan 2022 07:45:43 +0000 (07:45 +0000)]
Use indirect comparison when showing pull requests (#18313)
When generating the commits list and number of files changed for PRs and
compare we should use "..." always not "..".
Fix #18303
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath [Tue, 18 Jan 2022 07:45:14 +0000 (07:45 +0000)]
Prevent ambiguous column error in organizations page (#18314)
Explicitly set the table for the org_id column queries on the organizations pages.
Fix #18229
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath [Tue, 18 Jan 2022 07:44:30 +0000 (07:44 +0000)]
Correctly upload LFS files (#18316)
We need to use the cached .gitattributes file for checking if a file
should be stored in the lfs.
Fix #18297
Signed-off-by: Andrew Thornton <art27@cantab.net>
GiteaBot [Tue, 18 Jan 2022 00:31:56 +0000 (00:31 +0000)]
[skip ci] Updated translations via Crowdin
a1012112796 [Mon, 17 Jan 2022 18:39:07 +0000 (02:39 +0800)]
update description about vendoring in CONTRIBUTING.md (#18280)
* update description about vendoring in CONTRIBUTING.md
follow #18277
Signed-off-by: a1012112796 <1012112796@qq.com>
* Update CONTRIBUTING.md
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* fix and readd test-vendor step
* remove vendor from .gitattributes @silverwind
* simplify go mod check
Signed-off-by: a1012112796 <1012112796@qq.com>
* Revert "remove vendor from .gitattributes @silverwind"
This reverts commit
4789e704cb7a2c80934e4a4cd31efb161e6c8666 .
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Aravinth Manivannan [Mon, 17 Jan 2022 18:31:58 +0000 (18:31 +0000)]
Fix CheckRepoStats and reuse it during migration (#18264)
The CheckRepoStats function missed the following counters:
- label num_closed_issues & num_closed_pulls
- milestone num_closed_issues & num_closed_pulls
The update SQL statements for updating the repository
num_closed_issues & num_closed_pulls fields were repeated in three
functions (repo.CheckRepoStats, migrate.insertIssues and
models.Issue.updateClosedNum) and were moved to a single helper.
The UpdateRepoStats is implemented and called in the Finish migration method so that it happens immediately instead of wating for the
CheckRepoStats to run.
Signed-off-by: Loïc Dachary loic@dachary.org
---
[source](https://lab.forgefriends.org/forgefriends/forgefriends/-/merge_requests/34)
silverwind [Mon, 17 Jan 2022 13:26:35 +0000 (05:26 -0800)]
Minor tweak to tag list (#18295)
Slightly reduce the font size and padding in the tags table, it seemed a bit too big to me.
a1012112796 [Mon, 17 Jan 2022 05:56:43 +0000 (13:56 +0800)]
show pull link for agit pull request also (#18235)
GiteaBot [Mon, 17 Jan 2022 00:28:33 +0000 (00:28 +0000)]
[skip ci] Updated translations via Crowdin
silverwind [Sun, 16 Jan 2022 17:26:15 +0000 (09:26 -0800)]
Add some .ignore entries (#18296)
Exclude node_modules and minified files from search tools like `rg` and `ag`.
Ben Niemann [Sun, 16 Jan 2022 15:42:06 +0000 (16:42 +0100)]
Remove unneeded debug messages to stdout. (#18298)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
zeripath [Sun, 16 Jan 2022 14:59:16 +0000 (14:59 +0000)]
Handle missing default branch better in owner/repo/branches page (#18290)
This PR more nicely handles a missing default branch in owner/repo/branches
Fix #18265
Signed-off-by: Andrew Thornton <art27@cantab.net>
wxiaoguang [Sun, 16 Jan 2022 11:19:26 +0000 (19:19 +0800)]
Revert "Prevent possible XSS when using jQuery (#18289)" (#18293)
This reverts commit
661d3d28e97bb49bef075c0314edad5879148aaa .
a1012112796 [Sun, 16 Jan 2022 09:32:32 +0000 (17:32 +0800)]
not show double error response in git hook (#18292)
if return a error message to cli, it will print it
to stderr which is duplicate with our code (line 82
in same file). so user will see two line same
error message in git output. I think it's not mecessary,
so suggerst not return error message to cli. Thanks.
Signed-off-by: a1012112796 <1012112796@qq.com>
zeripath [Sun, 16 Jan 2022 09:31:41 +0000 (09:31 +0000)]
Remove accidental debugging in blob_excerpt.tmpl (#18287)
* Remove accidental debugging in blob_excerpt.tmpl
Unfortunately it appears that a small bit of debugging code was left in blob_excerpt.tmpl
This breaks diff expansion causing #18281.
Fix #18281
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Gusted [Sun, 16 Jan 2022 05:14:32 +0000 (05:14 +0000)]
Prevent possible XSS when using jQuery (#18289)
In the case of misuse or misunderstanding from a developer whereby,
if `sel` can receive user-controlled data, jQuery `$(sel)` can lead to the
creation of a new element. Current usage is using hard-coded selectors
in the templates, but nobody prevents that from expanding to
user-controlled somehow.
zeripath [Sun, 16 Jan 2022 03:44:11 +0000 (03:44 +0000)]
Return nicer error if trying to pull from non-existent user (#18288)
* Return nicer error if trying to pull from non-existent user
Gitea serv will currently return an 500 if we try to pull from a repository where
the owner does not exist.
This PR checks for the UserNotExist Error when checking for the user and will
return a NotFound error instead.
Fix #18225
GiteaBot [Sun, 16 Jan 2022 00:28:39 +0000 (00:28 +0000)]
[skip ci] Updated translations via Crowdin
Jan Tojnar [Sat, 15 Jan 2022 22:26:01 +0000 (23:26 +0100)]
docs: mention client_max_body_size affects LFS (#18291)
silverwind [Sat, 15 Jan 2022 20:06:29 +0000 (12:06 -0800)]
Add lockfile-check (#18285)
* Add lockfile-check
This check runs `npm install` which will rewrite the lockfile in case it
is inconsistent with package.json. This check detects this and will fail
the CI in such a case.
zeripath [Sat, 15 Jan 2022 16:52:56 +0000 (16:52 +0000)]
Webauthn nits (#18284)
This contains some additional fixes and small nits related to #17957
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Gusted [Sat, 15 Jan 2022 14:25:25 +0000 (14:25 +0000)]
Update `package-lock.json` (#18283)
- NPM didn't like that package-lock.json was out-of-sync, webpack
throwed some errors as well with building.
- Follow-up for: #18278
wxiaoguang [Sat, 15 Jan 2022 10:20:47 +0000 (18:20 +0800)]
Upgrade EasyMDE to 2.16.1 (#18278)
techknowlogick [Fri, 14 Jan 2022 23:16:05 +0000 (18:16 -0500)]
Remove golang vendored directory (#18277)
* rm go vendor
* fix drone yaml
* add to gitignore
zeripath [Fri, 14 Jan 2022 20:02:37 +0000 (20:02 +0000)]
Changelog for 1.15.10 (#18274) (#18276)
* Changelog for 1.15.10 (#18274)
[1.15.10](https://github.com/go-gitea/gitea/releases/tag/v1.15.10) - 2022-01-14
* BUGFIXES
* Fix inconsistent PR comment counts (#18260) (#18261)
* Fix release link broken (#18252) (#18253)
* Fix update user from site administration page bug (#18250) (#18251)
* Set HeadCommit when creating tags (#18116) (#18173)
* Use correct translation key for error messages due to max repo limits (#18135 & #18153) (#18152)
* Fix purple color in suggested label colors (#18241) (#18242)
* SECURITY
* Bump mermaid from 8.10.1 to 8.13.8 (#18198) (#18206)
* update docs/config.yaml
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Richard Mahn <richmahn@users.noreply.github.com>
Lunny Xiao [Fri, 14 Jan 2022 15:03:31 +0000 (23:03 +0800)]
Support webauthn (#17957)
Migrate from U2F to Webauthn
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
GiteaBot [Fri, 14 Jan 2022 00:29:34 +0000 (00:29 +0000)]
[skip ci] Updated translations via Crowdin
Gusted [Thu, 13 Jan 2022 20:32:28 +0000 (20:32 +0000)]
Improve the comment for 2FA filter in admin panel (#18017)
Replace TODO with explanation
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Norwin [Thu, 13 Jan 2022 16:50:43 +0000 (17:50 +0100)]
fix regression from #16075 (#18260)
we don't want reviews to count towards comments, as this needs changes
in other components as well (eg repo stats cron job, etc).
Co-authored-by: 6543 <6543@obermui.de>
silverwind [Thu, 13 Jan 2022 14:33:04 +0000 (06:33 -0800)]
Prevent underline hover on cards (#18259)
Prevent a undesired underline effect on hovered cards.
This was regressed by #17898.
Lunny Xiao [Thu, 13 Jan 2022 13:14:53 +0000 (21:14 +0800)]
Fix release link broken (#18252)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Aravinth Manivannan [Thu, 13 Jan 2022 06:03:30 +0000 (06:03 +0000)]
migrations: a deadline at January 1st, 1970 is valid (#18237)
* migrations: a deadline at January 1st, 1970 is valid
Do not change the deadline value if it is set to January 1st, 1970.
Setting the deadline to year 9999 when it is zero (which is equal to
January 1st, 1970) modifies a deadline set to January 1st, 1970 which
is a valid date. In addition, setting a date in year 9999 will be
converted to a null date in some cases.
Signed-off-by: Loïc Dachary <loic@dachary.org>
* tests: set milestone.deadline_unix in fixtures
The value of deadline_unix must be set to
253370764800 (i.e. 9999-01-01) in
fixtures, otherwise it will be inserted as null which leads to
unexpected errors. For instance, DumpRepository will store a null
deadline_unix as 0 (i.e. 1970-01-01) and RestoreRepository will change
it to 9999-01-01.
Signed-off-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: Loïc Dachary <loic@dachary.org>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
wxiaoguang [Thu, 13 Jan 2022 02:58:46 +0000 (10:58 +0800)]
Fix documents for development and bug report (#18249)
Zoran Peričić [Wed, 12 Jan 2022 22:54:53 +0000 (23:54 +0100)]
Add/update SMTP auth providers via cli (#18197)
Allow adding/updating SMTP authentication source via CLI using:
- gitea admin auth add-smtp
- gitea admin auth update-smtp
Signed-off-by: Zoran Peričić <zpericic@netst.org>
6543 [Wed, 12 Jan 2022 20:37:46 +0000 (21:37 +0100)]
Fix NPE on try to get tag reference via API (#18245)
* fix npe
* rm gitRepo from Tag
Lunny Xiao [Wed, 12 Jan 2022 13:58:09 +0000 (21:58 +0800)]
Fix update user bug (#18250)
M. Zhou [Wed, 12 Jan 2022 04:18:28 +0000 (23:18 -0500)]
[doc] https-setup: explain relative paths for {CERT,KEY}_FILE fields. (#18244)
Closes: https://github.com/go-gitea/gitea/issues/14401
Bo-Yi Wu [Tue, 11 Jan 2022 23:27:32 +0000 (07:27 +0800)]
chore: remove unnecessary section (#18209)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
silverwind [Tue, 11 Jan 2022 18:11:40 +0000 (10:11 -0800)]
Fix purple color in suggested label colors (#18241)
This looks like a typo that was introduced when these colors were added,
causing what is supposed to be purple show up as green.
zeripath [Tue, 11 Jan 2022 17:18:52 +0000 (17:18 +0000)]
Prevent NPE when viewing non-rendered files (#18234)
Fix #18231
Signed-off-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao [Tue, 11 Jan 2022 12:33:47 +0000 (20:33 +0800)]
Fix collobration template (#18232)
Andrey Esin [Tue, 11 Jan 2022 11:33:42 +0000 (14:33 +0300)]
Fix identation typo in doc installation with Docker (#18233)
GiteaBot [Tue, 11 Jan 2022 00:28:42 +0000 (00:28 +0000)]
[skip ci] Updated translations via Crowdin
luzpaz [Mon, 10 Jan 2022 15:46:26 +0000 (10:46 -0500)]
Fix source typos (#18227)
Follow-up to #18219
luzpaz [Mon, 10 Jan 2022 09:32:37 +0000 (04:32 -0500)]
Fix various typos (#18219)
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby,te,unknwon`
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Gusted [Mon, 10 Jan 2022 01:48:13 +0000 (01:48 +0000)]
Remove `ioutil` (#18222)
- Don't use `ioutil` package anymore as it doesn't anything special
anymore since Go 1.16:
```
// As of Go 1.16, the same functionality is now provided
// by package io or package os, and those implementations
// should be preferred in new code.
```
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
GiteaBot [Mon, 10 Jan 2022 00:28:05 +0000 (00:28 +0000)]
[skip ci] Updated translations via Crowdin
Greg Myers [Sun, 9 Jan 2022 11:53:03 +0000 (04:53 -0700)]
Fix typos in docs/content (#18215)
GiteaBot [Sun, 9 Jan 2022 00:28:45 +0000 (00:28 +0000)]
[skip ci] Updated licenses and gitignores
capvor [Sat, 8 Jan 2022 16:21:10 +0000 (00:21 +0800)]
In the Organization member page, 2fa column is too narrow for Simplified Chinese and Chinese Traditional. (#18213)
Expand 2fa column and Narrow the last column.
Lunny Xiao [Sat, 8 Jan 2022 15:19:36 +0000 (23:19 +0800)]
Fix new team (#18212)
fix regression from #17811
wxiaoguang [Sat, 8 Jan 2022 13:33:32 +0000 (21:33 +0800)]
Fix EasyMDE image paste bug during refactoring (#18207)
delvh [Sat, 8 Jan 2022 12:18:39 +0000 (13:18 +0100)]
Sort locales according to their names (#18211)
* Sort locales according to their names
* Fix documentation and sort case insensitive
zeripath [Sat, 8 Jan 2022 02:03:51 +0000 (02:03 +0000)]
Restore setting of ctx.Repo.Mirror (#18205)
In #17933 repoAssignment no longer sets the ctx.Repo.Mirror field meaning that
attempting change mirror settings results in an NPE. This PR simply restores this.
Either we should remove this field or, we should set it. At present it seems simplest
to set it instead of going looking in the Data for the value although converting the
context to a bag of things may be the correct approach in the future.
Fix #18204
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
GiteaBot [Sat, 8 Jan 2022 00:28:35 +0000 (00:28 +0000)]
[skip ci] Updated translations via Crowdin
KN4CK3R [Fri, 7 Jan 2022 21:02:09 +0000 (22:02 +0100)]
Show OAuth callback error message (#18185)
* Show callback error message.
* lint
* Use error code to display a message.
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind [Fri, 7 Jan 2022 08:41:31 +0000 (00:41 -0800)]
Fix CSS specificity issue with easymde's css (#18201)
* Fix CSS specificity issue with easymde's css
PR #18069 introduced a regression in certain overwritten editor styles
because the dynamic loading of easymde.min.css causes its's style to
apply after our supposed override styles.
Solve this by bundling the styles into index.css. We should later aim to
completely replace easymde.min.css completely with our own styles so there
are no more conflicts.
* Update web_src/js/features/comp/EasyMDE.js
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
silverwind [Fri, 7 Jan 2022 03:49:27 +0000 (19:49 -0800)]
Fix mermaid rendering in milestone dashboard (#18202)
Fixes: https://github.com/go-gitea/gitea/issues/18200
Lunny Xiao [Fri, 7 Jan 2022 02:33:17 +0000 (10:33 +0800)]
Don't store assets modified time into generated files (#18193)