Skip to content

Commit e4b7cf7

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Use neutral language in comments and docs (go-gitea#20135) Fix remove file on initial comment (go-gitea#20127) Add doctor command to write commit-graphs (go-gitea#20007) Add sitemap support (go-gitea#18407) Use new config options (go-gitea#20125) Remove depricated queue indexer usage (go-gitea#20124) Disable status checks in template if none found (go-gitea#20088) Fix typos related to ErrTaskDoesNotExist error (go-gitea#20118)
2 parents 2dbef35 + 711cbcc commit e4b7cf7

File tree

27 files changed

+372
-26
lines changed

27 files changed

+372
-26
lines changed

custom/conf/app.example.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,9 @@ PATH =
10971097
;; Number of items that are displayed in home feed
10981098
;FEED_PAGING_NUM = 20
10991099
;;
1100+
;; Number of items that are displayed in a single subsitemap
1101+
;SITEMAP_PAGING_NUM = 20
1102+
;;
11001103
;; Number of maximum commits displayed in commit graph.
11011104
;GRAPH_MAX_COMMIT_NUM = 100
11021105
;;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
174174
- `MEMBERS_PAGING_NUM`: **20**: Number of members that are shown in organization members.
175175
- `FEED_MAX_COMMIT_NUM`: **5**: Number of maximum commits shown in one activity feed.
176176
- `FEED_PAGING_NUM`: **20**: Number of items that are displayed in home feed.
177+
- `SITEMAP_PAGING_NUM`: **20**: Number of items that are displayed in a single subsitemap.
177178
- `GRAPH_MAX_COMMIT_NUM`: **100**: Number of maximum commits shown in the commit graph.
178179
- `CODE_COMMENT_LINES`: **4**: Number of line of codes shown for a code comment.
179180
- `DEFAULT_THEME`: **auto**: \[auto, gitea, arc-green\]: Set the default theme for the Gitea install.

docs/content/doc/developers/oauth2-provider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ To use the Authorization Code Grant as a third party application it is required
4141

4242
## Scopes
4343

44-
Currently Gitea does not support scopes (see [#4300](https://github.com/go-gitea/gitea/issues/4300)) and all third party applications will be granted access to all resources of the user and his/her organizations.
44+
Currently Gitea does not support scopes (see [#4300](https://github.com/go-gitea/gitea/issues/4300)) and all third party applications will be granted access to all resources of the user and their organizations.
4545

4646
## Example
4747

4848
**Note:** This example does not use PKCE.
4949

50-
1. Redirect to user to the authorization endpoint in order to get his/her consent for accessing the resources:
50+
1. Redirect to user to the authorization endpoint in order to get their consent for accessing the resources:
5151

5252
```curl
5353
https://[YOUR-GITEA-URL]/login/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI& response_type=code&state=STATE

docs/content/doc/developers/oauth2-provider.zh-tw.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Gitea 支援作為 OAuth2 提供者,能讓第三方程式能在使用者同意
4646
**備註:** 此範例未使用 PKCE。
4747

4848
1. 重新導向使用者到 authorization endpoint 以獲得他同意授權存取資源:
49-
<!-- 1. Redirect to user to the authorization endpoint in order to get his/her consent for accessing the resources: -->
49+
<!-- 1. Redirect to user to the authorization endpoint in order to get their consent for accessing the resources: -->
5050

5151
```curl
5252
https://[YOUR-GITEA-URL]/login/oauth/authorize?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI& response_type=code&state=STATE

integrations/mssql.ini.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ PASSWD = {{TEST_MSSQL_PASSWORD}}
1010
SSL_MODE = disable
1111

1212
[indexer]
13-
ISSUE_INDEXER_PATH = integrations/gitea-integration-mssql/indexers/issues.bleve
14-
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mssql/indexers/issues.queue
1513
REPO_INDEXER_ENABLED = true
1614
REPO_INDEXER_PATH = integrations/gitea-integration-mssql/indexers/repos.bleve
1715

16+
[queue.issue_indexer]
17+
PATH = integrations/gitea-integration-mssql/indexers/issues.bleve
18+
DATADIR = integrations/gitea-integration-mssql/indexers/issues.queue
19+
1820
[queue]
1921
TYPE = immediate
2022

integrations/mysql.ini.tmpl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ PASSWD = {{TEST_MYSQL_PASSWORD}}
1010
SSL_MODE = disable
1111

1212
[indexer]
13-
ISSUE_INDEXER_TYPE = elasticsearch
14-
ISSUE_INDEXER_CONN_STR = http://elastic:changeme@elasticsearch:9200
15-
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mysql/indexers/issues.queue
1613
REPO_INDEXER_ENABLED = true
1714
REPO_INDEXER_PATH = integrations/gitea-integration-mysql/indexers/repos.bleve
1815

16+
[queue.issue_indexer]
17+
TYPE = elasticsearch
18+
CONN_STR = http://elastic:changeme@elasticsearch:9200
19+
DATADIR = integrations/gitea-integration-mysql/indexers/issues.queue
20+
1921
[queue]
2022
TYPE = immediate
2123

integrations/mysql8.ini.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ PASSWD = {{TEST_MYSQL8_PASSWORD}}
1010
SSL_MODE = disable
1111

1212
[indexer]
13-
ISSUE_INDEXER_PATH = integrations/gitea-integration-mysql8/indexers/issues.bleve
14-
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-mysql8/indexers/issues.queue
1513
REPO_INDEXER_ENABLED = true
1614
REPO_INDEXER_PATH = integrations/gitea-integration-mysql8/indexers/repos.bleve
1715

16+
[queue.issue_indexer]
17+
PATH = integrations/gitea-integration-mysql8/indexers/issues.bleve
18+
DATADIR = integrations/gitea-integration-mysql8/indexers/issues.queue
19+
1820
[queue]
1921
TYPE = immediate
2022

integrations/pgsql.ini.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ SCHEMA = {{TEST_PGSQL_SCHEMA}}
1111
SSL_MODE = disable
1212

1313
[indexer]
14-
ISSUE_INDEXER_PATH = integrations/gitea-integration-pgsql/indexers/issues.bleve
15-
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-pgsql/indexers/issues.queue
1614
REPO_INDEXER_ENABLED = true
1715
REPO_INDEXER_PATH = integrations/gitea-integration-pgsql/indexers/repos.bleve
1816

17+
[queue.issue_indexer]
18+
PATH = integrations/gitea-integration-pgsql/indexers/issues.bleve
19+
DATADIR = integrations/gitea-integration-pgsql/indexers/issues.queue
20+
1921
[queue]
2022
TYPE = immediate
2123

integrations/sqlite.ini.tmpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ DB_TYPE = sqlite3
66
PATH = integrations/gitea-integration-sqlite/gitea.db
77

88
[indexer]
9-
ISSUE_INDEXER_PATH = integrations/gitea-integration-sqlite/indexers/issues.bleve
10-
ISSUE_INDEXER_QUEUE_DIR = integrations/gitea-integration-sqlite/indexers/issues.queue
119
REPO_INDEXER_ENABLED = true
1210
REPO_INDEXER_PATH = integrations/gitea-integration-sqlite/indexers/repos.bleve
1311

12+
[queue.issue_indexer]
13+
PATH = integrations/gitea-integration-sqlite/indexers/issues.bleve
14+
DATADIR = integrations/gitea-integration-sqlite/indexers/issues.queue
15+
1416
[queue]
1517
TYPE = immediate
1618

models/migrations/v154.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func addTimeStamps(x *xorm.Engine) error {
3030
return err
3131
}
3232

33-
// Follow represents relations of user and his/her followers.
33+
// Follow represents relations of user and their followers.
3434
type Follow struct {
3535
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
3636
}

0 commit comments

Comments
 (0)