Skip to content

Commit e129316

Browse files
authored
Merge branch 'main' into invalid-csrf-redirect
2 parents f23b496 + fc1607b commit e129316

File tree

608 files changed

+37681
-22874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

608 files changed

+37681
-22874
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ steps:
404404

405405
- name: update
406406
pull: default
407-
image: alpine:3.13
407+
image: alpine:3.14
408408
commands:
409409
- ./build/update-locales.sh
410410

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ This changelog goes through all the changes that have been made in each release
44
without substantial changes to our git log; to see the highlights of what has
55
been added to each release, please refer to the [blog](https://blog.gitea.io).
66

7+
## [1.14.4](https://github.com/go-gitea/gitea/releases/tag/v1.14.4) - 2021-07-06
8+
9+
* BUGFIXES
10+
* Fix relative links in postprocessed images (#16334) (#16340)
11+
* Fix list_options GetStartEnd (#16303) (#16305)
12+
* Fix API to use author for commits instead of committer (#16276) (#16277)
13+
* Handle misencoding of login_source cfg in mssql (#16268) (#16275)
14+
* Fixed issues not updated by commits (#16254) (#16261)
15+
* Improve efficiency in FindRenderizableReferenceNumeric and getReference (#16251) (#16255)
16+
* Use html.Parse rather than html.ParseFragment (#16223) (#16225)
17+
* Fix milestone counters on new issue (#16183) (#16224)
18+
* reqOrgMembership calls need to be preceded by reqToken (#16198) (#16219)
19+
720
## [1.14.3](https://github.com/go-gitea/gitea/releases/tag/v1.14.3) - 2021-06-18
821

922
* SECURITY

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.16-alpine3.13 AS build-env
4+
FROM golang:1.16-alpine3.14 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}
@@ -25,7 +25,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2525
# Begin env-to-ini build
2626
RUN go build contrib/environment-to-ini/environment-to-ini.go
2727

28-
FROM alpine:3.13
28+
FROM alpine:3.14
2929
LABEL maintainer="[email protected]"
3030

3131
EXPOSE 22 3000

Dockerfile.rootless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.16-alpine3.13 AS build-env
4+
FROM golang:1.16-alpine3.14 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}
@@ -25,7 +25,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2525
# Begin env-to-ini build
2626
RUN go build contrib/environment-to-ini/environment-to-ini.go
2727

28-
FROM alpine:3.13
28+
FROM alpine:3.14
2929
LABEL maintainer="[email protected]"
3030

3131
EXPOSE 2222 3000

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ misspell-check:
297297
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
298298
fi
299299
@echo "Running misspell-check..."
300-
@misspell -error -i unknwon,destory $(GO_SOURCES_OWN)
300+
@misspell -error -i unknwon $(GO_SOURCES_OWN)
301301

302302
.PHONY: misspell
303303
misspell:

cmd/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func runDump(ctx *cli.Context) error {
280280
}
281281

282282
if ctx.IsSet("skip-custom-dir") && ctx.Bool("skip-custom-dir") {
283-
log.Info("Skiping custom directory")
283+
log.Info("Skipping custom directory")
284284
} else {
285285
customDir, err := os.Stat(setting.CustomPath)
286286
if err == nil && customDir.IsDir() {

cmd/hook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Gitea or set your environment appropriately.`, "")
165165
}
166166
}
167167

168-
// the environment setted on serv command
168+
// the environment is set by serv command
169169
isWiki := os.Getenv(models.EnvRepoIsWiki) == "true"
170170
username := os.Getenv(models.EnvRepoUsername)
171171
reponame := os.Getenv(models.EnvRepoName)
@@ -320,7 +320,7 @@ Gitea or set your environment appropriately.`, "")
320320
}
321321
}
322322

323-
// the environment setted on serv command
323+
// the environment is set by serv command
324324
repoUser := os.Getenv(models.EnvRepoUsername)
325325
isWiki := os.Getenv(models.EnvRepoIsWiki) == "true"
326326
repoName := os.Getenv(models.EnvRepoName)

cmd/migrate_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func runMigrateStorage(ctx *cli.Context) error {
184184
return fmt.Errorf("Unsupported storage: %s", ctx.String("type"))
185185
}
186186

187-
log.Warn("All files have been copied to the new placement but old files are still on the orignial placement.")
187+
log.Warn("All files have been copied to the new placement but old files are still on the original placement.")
188188

189189
return nil
190190
}

cmd/serv.go

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
package cmd
77

88
import (
9+
"context"
910
"fmt"
1011
"net/http"
1112
"net/url"
1213
"os"
1314
"os/exec"
15+
"os/signal"
1416
"regexp"
1517
"strconv"
1618
"strings"
19+
"syscall"
1720
"time"
1821

1922
"code.gitea.io/gitea/models"
@@ -273,12 +276,31 @@ func runServ(c *cli.Context) error {
273276
verb = strings.Replace(verb, "-", " ", 1)
274277
}
275278

279+
ctx, cancel := context.WithCancel(context.Background())
280+
defer cancel()
281+
go func() {
282+
// install notify
283+
signalChannel := make(chan os.Signal, 1)
284+
285+
signal.Notify(
286+
signalChannel,
287+
syscall.SIGINT,
288+
syscall.SIGTERM,
289+
)
290+
select {
291+
case <-signalChannel:
292+
case <-ctx.Done():
293+
}
294+
cancel()
295+
signal.Reset()
296+
}()
297+
276298
var gitcmd *exec.Cmd
277299
verbs := strings.Split(verb, " ")
278300
if len(verbs) == 2 {
279-
gitcmd = exec.Command(verbs[0], verbs[1], repoPath)
301+
gitcmd = exec.CommandContext(ctx, verbs[0], verbs[1], repoPath)
280302
} else {
281-
gitcmd = exec.Command(verb, repoPath)
303+
gitcmd = exec.CommandContext(ctx, verb, repoPath)
282304
}
283305

284306
gitcmd.Dir = setting.RepoRootPath

cmd/web_letsencrypt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
func runLetsEncrypt(listenAddr, domain, directory, email string, m http.Handler) error {
2020

2121
// If HTTP Challenge enabled, needs to be serving on port 80. For TLSALPN needs 443.
22-
// Due to docker port mapping this can't be checked programatically
22+
// Due to docker port mapping this can't be checked programmatically
2323
// TODO: these are placeholders until we add options for each in settings with appropriate warning
2424
enableHTTPChallenge := true
2525
enableTLSALPNChallenge := true

contrib/update_dependencies.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
grep 'git' go.mod | grep '\.com' | grep -v indirect | grep -v replace | cut -f 2 | cut -d ' ' -f 1 | while read line; do
4+
go get -u "$line"
5+
make vendor
6+
git add .
7+
git commit -S -m "update $line"
8+
done

custom/conf/app.example.ini

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ PATH =
573573
;;
574574
;; Respond to pushes to a non-default branch with a URL for creating a Pull Request (if the repository has them enabled)
575575
;PULL_REQUEST_PUSH_MESSAGE = true
576+
;;
577+
;; (Go-Git only) Don't cache objects greater than this in memory. (Set to 0 to disable.)
578+
;LARGE_OBJECT_THRESHOLD = 1048576
576579

577580
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
578581
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -656,7 +659,7 @@ PATH =
656659
;; Public is for users visible for everyone
657660
;DEFAULT_USER_VISIBILITY = public
658661
;;
659-
;; Set whitch visibibilty modes a user can have
662+
;; Set which visibility modes a user can have
660663
;ALLOWED_USER_VISIBILITY_MODES = public,limited,private
661664
;;
662665
;; Either "public", "limited" or "private", default is "public"
@@ -1029,11 +1032,16 @@ PATH =
10291032
;; All available themes. Allow users select personalized themes regardless of the value of `DEFAULT_THEME`.
10301033
;THEMES = gitea,arc-green
10311034
;;
1032-
;;All available reactions users can choose on issues/prs and comments.
1033-
;;Values can be emoji alias (:smile:) or a unicode emoji.
1034-
;;For custom reactions, add a tightly cropped square image to public/emoji/img/reaction_name.png
1035+
;; All available reactions users can choose on issues/prs and comments.
1036+
;; Values can be emoji alias (:smile:) or a unicode emoji.
1037+
;; For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
10351038
;REACTIONS = +1, -1, laugh, hooray, confused, heart, rocket, eyes
10361039
;;
1040+
;; Additional Emojis not defined in the utf8 standard
1041+
;; By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and add it to this config.
1042+
;; Dont mistake it for Reactions.
1043+
;CUSTOM_EMOJIS = gitea, codeberg, gitlab, git, github, gogs
1044+
;;
10371045
;; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
10381046
;DEFAULT_SHOW_FULL_NAME = false
10391047
;;

docker/root/etc/s6/gitea/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then
2323
INSTALL_LOCK=true
2424
fi
2525

26-
# Substitude the environment variables in the template
26+
# Substitute the environment variables in the template
2727
APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \
2828
RUN_MODE=${RUN_MODE:-"prod"} \
2929
DOMAIN=${DOMAIN:-"localhost"} \

docker/rootless/usr/local/bin/docker-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ ! -f ${GITEA_APP_INI} ]; then
2525
INSTALL_LOCK=true
2626
fi
2727

28-
# Substitude the environment variables in the template
28+
# Substitute the environment variables in the template
2929
APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \
3030
RUN_MODE=${RUN_MODE:-"prod"} \
3131
RUN_USER=${USER:-"git"} \

docs/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ params:
1818
description: Git with a cup of tea
1919
author: The Gitea Authors
2020
website: https://docs.gitea.io
21-
version: 1.14.2
21+
version: 1.14.4
2222
minGoVersion: 1.14
2323
goVersion: 1.16
2424
minNodeVersion: 12.17

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
128128
- Options other than `never` and `always` can be combined as a comma separated list.
129129
- `DEFAULT_TRUST_MODEL`: **collaborator**: \[collaborator, committer, collaboratorcommitter\]: The default trust model used for verifying commits.
130130
- `collaborator`: Trust signatures signed by keys of collaborators.
131-
- `committer`: Trust signatures that match committers (This matches GitHub and will force Gitea signed commits to have Gitea as the commmitter).
132-
- `collaboratorcommitter`: Trust signatures signed by keys of collaborators which match the commiter.
131+
- `committer`: Trust signatures that match committers (This matches GitHub and will force Gitea signed commits to have Gitea as the committer).
132+
- `collaboratorcommitter`: Trust signatures signed by keys of collaborators which match the committer.
133133
- `WIKI`: **never**: \[never, pubkey, twofa, always, parentsigned\]: Sign commits to wiki.
134134
- `CRUD_ACTIONS`: **pubkey, twofa, parentsigned**: \[never, pubkey, twofa, parentsigned, always\]: Sign CRUD actions.
135135
- Options as above, with the addition of:
@@ -180,7 +180,10 @@ The following configuration set `Content-Type: application/vnd.android.package-a
180180
- `MAX_DISPLAY_FILE_SIZE`: **8388608**: Max size of files to be displayed (default is 8MiB)
181181
- `REACTIONS`: All available reactions users can choose on issues/prs and comments
182182
Values can be emoji alias (:smile:) or a unicode emoji.
183-
For custom reactions, add a tightly cropped square image to public/emoji/img/reaction_name.png
183+
For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
184+
- `CUSTOM_EMOJIS`: **gitea, codeberg, gitlab, git, github, gogs**: Additional Emojis not defined in the utf8 standard.
185+
By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and
186+
add it to this config.
184187
- `DEFAULT_SHOW_FULL_NAME`: **false**: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
185188
- `SEARCH_REPO_DESCRIPTION`: **true**: Whether to search within description at repository search on explore page.
186189
- `USE_SERVICE_WORKER`: **true**: Whether to enable a Service Worker to cache frontend assets.
@@ -342,9 +345,9 @@ The following configuration set `Content-Type: application/vnd.android.package-a
342345
- `PATH`: **data/gitea.db**: For SQLite3 only, the database file path.
343346
- `LOG_SQL`: **true**: Log the executed SQL.
344347
- `DB_RETRIES`: **10**: How many ORM init / DB connect attempts allowed.
345-
- `DB_RETRY_BACKOFF`: **3s**: time.Duration to wait before trying another ORM init / DB connect attempt, if failure occured.
348+
- `DB_RETRY_BACKOFF`: **3s**: time.Duration to wait before trying another ORM init / DB connect attempt, if failure occurred.
346349
- `MAX_OPEN_CONNS` **0**: Database maximum open connections - default is 0, meaning there is no limit.
347-
- `MAX_IDLE_CONNS` **2**: Max idle database connections on connnection pool, default is 2 - this will be capped to `MAX_OPEN_CONNS`.
350+
- `MAX_IDLE_CONNS` **2**: Max idle database connections on connection pool, default is 2 - this will be capped to `MAX_OPEN_CONNS`.
348351
- `CONN_MAX_LIFETIME` **0 or 3s**: Sets the maximum amount of time a DB connection may be reused - default is 0, meaning there is no limit (except on MySQL where it is 3s - see #6804 & #7071).
349352

350353
Please see #8540 & #8273 for further discussion of the appropriate values for `MAX_OPEN_CONNS`, `MAX_IDLE_CONNS` & `CONN_MAX_LIFETIME` and their
@@ -382,14 +385,14 @@ relation to port exhaustion.
382385
- `LENGTH`: **20**: Maximal queue size before channel queues block
383386
- `BATCH_LENGTH`: **20**: Batch data before passing to the handler
384387
- `CONN_STR`: **redis://127.0.0.1:6379/0**: Connection string for the redis queue type. Options can be set using query params. Similarly LevelDB options can also be set using: **leveldb://relative/path?option=value** or **leveldb:///absolute/path?option=value**, and will override `DATADIR`
385-
- `QUEUE_NAME`: **_queue**: The suffix for default redis and disk queue name. Individual queues will default to **`name`**`QUEUE_NAME` but can be overriden in the specific `queue.name` section.
388+
- `QUEUE_NAME`: **_queue**: The suffix for default redis and disk queue name. Individual queues will default to **`name`**`QUEUE_NAME` but can be overridden in the specific `queue.name` section.
386389
- `SET_NAME`: **_unique**: The suffix that will be added to the default redis and disk queue `set` name for unique queues. Individual queues will default to
387390
**`name`**`QUEUE_NAME`_`SET_NAME`_ but can be overridden in the specific `queue.name` section.
388391
- `WRAP_IF_NECESSARY`: **true**: Will wrap queues with a timeoutable queue if the selected queue is not ready to be created - (Only relevant for the level queue.)
389392
- `MAX_ATTEMPTS`: **10**: Maximum number of attempts to create the wrapped queue
390393
- `TIMEOUT`: **GRACEFUL_HAMMER_TIME + 30s**: Timeout the creation of the wrapped queue if it takes longer than this to create.
391394
- Queues by default come with a dynamically scaling worker pool. The following settings configure this:
392-
- `WORKERS`: **0** (v1.14 and before: **1**): Number of initial workers for the queue.
395+
- `WORKERS`: **0** (v1.14 and before: **1**): Number of initial workers for the queue.
393396
- `MAX_WORKERS`: **10**: Maximum number of worker go-routines for the queue.
394397
- `BLOCK_TIMEOUT`: **1s**: If the queue blocks for this time, boost the number of workers - the `BLOCK_TIMEOUT` will then be doubled before boosting again whilst the boost is ongoing.
395398
- `BOOST_TIMEOUT`: **5m**: Boost workers will timeout after this long.
@@ -513,7 +516,7 @@ relation to port exhaustion.
513516
- `AUTO_WATCH_NEW_REPOS`: **true**: Enable this to let all organisation users watch new repos when they are created
514517
- `AUTO_WATCH_ON_CHANGES`: **false**: Enable this to make users watch a repository after their first commit to it
515518
- `DEFAULT_USER_VISIBILITY`: **public**: Set default visibility mode for users, either "public", "limited" or "private".
516-
- `ALLOWED_USER_VISIBILITY_MODES`: **public,limited,private**: Set whitch visibibilty modes a user can have
519+
- `ALLOWED_USER_VISIBILITY_MODES`: **public,limited,private**: Set which visibility modes a user can have
517520
- `DEFAULT_ORG_VISIBILITY`: **public**: Set default visibility mode for organisations, either "public", "limited" or "private".
518521
- `DEFAULT_ORG_MEMBER_VISIBLE`: **false** True will make the membership of the users visible when added to the organisation.
519522
- `ALLOW_ONLY_INTERNAL_REGISTRATION`: **false** Set to true to force registration only via gitea.
@@ -834,7 +837,7 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
834837
- `PULL_REQUEST_PUSH_MESSAGE`: **true**: Respond to pushes to a non-default branch with a URL for creating a Pull Request (if the repository has them enabled)
835838
- `VERBOSE_PUSH`: **true**: Print status information about pushes as they are being processed.
836839
- `VERBOSE_PUSH_DELAY`: **5s**: Only print verbose information if push takes longer than this delay.
837-
840+
- `LARGE_OBJECT_THRESHOLD`: **1048576**: (Go-Git only), don't cache objects greater than this in memory. (Set to 0 to disable.)
838841
## Git - Timeout settings (`git.timeout`)
839842
- `DEFAUlT`: **360**: Git operations default timeout seconds.
840843
- `MIGRATE`: **600**: Migrate external repositories timeout seconds.
@@ -892,7 +895,7 @@ IS_INPUT_FILE = false
892895
- ENABLED: **false** Enable markup support; set to **true** to enable this renderer.
893896
- NEED\_POSTPROCESS: **true** set to **true** to replace links / sha1 and etc.
894897
- FILE\_EXTENSIONS: **\<empty\>** List of file extensions that should be rendered by an external
895-
command. Multiple extentions needs a comma as splitter.
898+
command. Multiple extensions needs a comma as splitter.
896899
- RENDER\_COMMAND: External command to render all matching extensions.
897900
- IS\_INPUT\_FILE: **false** Input is not a standard input but a file param followed `RENDER_COMMAND`.
898901

@@ -924,7 +927,7 @@ If the rule is defined above the renderer ini section or the name does not match
924927

925928
## Time (`time`)
926929

927-
- `FORMAT`: Time format to diplay on UI. i.e. RFC1123 or 2006-01-02 15:04:05
930+
- `FORMAT`: Time format to display on UI. i.e. RFC1123 or 2006-01-02 15:04:05
928931
- `DEFAULT_UI_LOCATION`: Default location of time on the UI, so that we can display correct user's time on UI. i.e. Shanghai/Asia
929932

930933
## Task (`task`)

docs/content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To make Gitea serve custom public files (like pages and images), use the folder
5656
`$GITEA_CUSTOM/public/` as the webroot. Symbolic links will be followed.
5757

5858
For example, a file `image.png` stored in `$GITEA_CUSTOM/public/`, can be accessed with
59-
the url `http://gitea.domain.tld/image.png`.
59+
the url `http://gitea.domain.tld/assets/image.png`.
6060

6161
## Changing the logo
6262

@@ -138,7 +138,7 @@ copy javascript files from https://gitea.com/davidsvantesson/plantuml-code-highl
138138
<script src="https://your-server.com/plantuml_codeblock_parse.js"></script>
139139
<script>
140140
<!-- Replace call with address to your plantuml server-->
141-
parsePlantumlCodeBlocks("http://www.plantuml..com/plantuml");
141+
parsePlantumlCodeBlocks("http://www.plantuml.com/plantuml");
142142
</script>
143143
{{end}}
144144
```

docs/content/doc/advanced/customizing-gitea.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Gitea 引用 `custom` 目录中的自定义配置文件来覆盖配置、模板
4040

4141
将自定义的公共文件(比如页面和图片)作为 webroot 放在 `custom/public/` 中来让 Gitea 提供这些自定义内容(符号链接将被追踪)。
4242

43-
举例说明:`image.png` 存放在 `custom/public/`中,那么它可以通过链接 http://gitea.domain.tld/image.png 访问。
43+
举例说明:`image.png` 存放在 `custom/public/`中,那么它可以通过链接 http://gitea.domain.tld/assets/image.png 访问。
4444

4545
## 修改默认头像
4646

docs/content/doc/advanced/logging-documentation.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ ROUTER = console
282282
COLORIZE = false ; this can be true if you can strip out the ansi coloring
283283
```
284284

285-
Sometimes it will be helpful get some specific `TRACE` level logging retricted
285+
Sometimes it will be helpful get some specific `TRACE` level logging restricted
286286
to messages that match a specific `EXPRESSION`. Adjusting the `MODE` in the
287287
`[log]` section to `MODE = console,traceconsole` to add a new logger output
288288
`traceconsole` and then adding its corresponding section would be helpful:

docs/content/doc/advanced/protected-tags.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To protect a tag, you need to follow these steps:
2727

2828
1. Go to the repository’s **Settings** > **Tags** page.
2929
1. Type a pattern to match a name. You can use a single name, a [glob pattern](https://pkg.go.dev/github.com/gobwas/glob#Compile) or a regular expression.
30-
1. Choose the allowed users and/or teams. If you leave these fields empty noone is allowed to create or modify this tag.
30+
1. Choose the allowed users and/or teams. If you leave these fields empty no one is allowed to create or modify this tag.
3131
1. Select **Save** to save the configuration.
3232

3333
## Pattern protected tags

docs/content/doc/developers/integrations.en-us.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ projects.
2020

2121
We are curating a list over at [awesome-gitea](https://gitea.com/gitea/awesome-gitea) to track these!
2222

23-
If you are looking for [CI/CD](https://gitea.com/gitea/awesome-gitea#devops),
24-
an [SDK](https://gitea.com/gitea/awesome-gitea#sdk),
25-
or even some extra [themes](https://gitea.com/gitea/awesome-gitea#themes),
23+
If you are looking for [CI/CD](https://gitea.com/gitea/awesome-gitea#user-content-devops),
24+
an [SDK](https://gitea.com/gitea/awesome-gitea#user-content-sdk),
25+
or even some extra [themes](https://gitea.com/gitea/awesome-gitea#user-content-themes),
2626
you can find them listed in the [awesome-gitea](https://gitea.com/gitea/awesome-gitea) repository!

0 commit comments

Comments
 (0)