Skip to content

Commit 490381a

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Fix flex layout for repo list icons (go-gitea#21896) Add index for access_token (go-gitea#21908) Fix vertical align of committer avatar rendered by email address (go-gitea#21884) Improve docker rootless documentation (go-gitea#21913) Ensure that Webhook tasks are not double delivered (go-gitea#21558) Move migration test fixtures to the correct directories (go-gitea#21901) feat: add button to quickly clear merge message (go-gitea#21548)
2 parents 0906600 + 09b7d81 commit 490381a

File tree

34 files changed

+166
-44
lines changed

34 files changed

+166
-44
lines changed

docs/content/doc/installation/with-docker-rootless.en-us.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ the official [install instructions](https://docs.docker.com/compose/install/).
2929

3030
The most simple setup just creates a volume and a network and starts the `gitea/gitea:latest-rootless`
3131
image as a service. Since there is no database available, one can be initialized using SQLite3.
32-
Create a directory for `data` and `config` then paste the following content into a file named `docker-compose.yml`.
33-
Note that the volume should be owned by the user/group with the UID/GID specified in the config file. By default Gitea in docker will use uid:1000 gid:1000. If needed you can set ownership on those folders with the command: `sudo chown 1000:1000 config/ data/`
34-
If you don't give the volume correct permissions, the container may not start.
35-
For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:{{< version >}}-rootless`, but if you'd like to use the latest development version then `:dev-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-dev-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-dev-rootless`)
32+
33+
Create a directory for `data` and `config`:
34+
35+
```sh
36+
mkdir -p gitea/{data,config}
37+
cd gitea
38+
touch docker-compose.yml
39+
```
40+
41+
Then paste the following content into a file named `docker-compose.yml`:
3642

3743
```yaml
3844
version: "2"
@@ -51,6 +57,16 @@ services:
5157
- "2222:2222"
5258
```
5359
60+
Note that the volume should be owned by the user/group with the UID/GID specified in the config file. By default Gitea in docker will use uid:1000 gid:1000. If needed you can set ownership on those folders with the command:
61+
62+
```sh
63+
sudo chown 1000:1000 config/ data/
64+
```
65+
66+
> If you don't give the volume correct permissions, the container may not start.
67+
68+
For a stable release you could use `:latest-rootless`, `:1-rootless` or specify a certain release like `:{{< version >}}-rootless`, but if you'd like to use the latest development version then `:dev-rootless` would be an appropriate tag. If you'd like to run the latest commit from a release branch you can use the `:1.x-dev-rootless` tag, where x is the minor version of Gitea. (e.g. `:1.16-dev-rootless`)
69+
5470
## Custom port
5571

5672
To bind the integrated ssh and the webserver on a different port, adjust

models/auth/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type AccessToken struct {
6666
Token string `xorm:"-"`
6767
TokenHash string `xorm:"UNIQUE"` // sha256 of token
6868
TokenSalt string
69-
TokenLastEight string `xorm:"token_last_eight"`
69+
TokenLastEight string `xorm:"INDEX token_last_eight"`
7070

7171
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
7272
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`

models/avatars/avatar.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ import (
2020
"code.gitea.io/gitea/modules/setting"
2121
)
2222

23-
// DefaultAvatarPixelSize is the default size in pixels of a rendered avatar
24-
const DefaultAvatarPixelSize = 28
23+
const (
24+
// DefaultAvatarClass is the default class of a rendered avatar
25+
DefaultAvatarClass = "ui avatar vm"
26+
// DefaultAvatarPixelSize is the default size in pixels of a rendered avatar
27+
DefaultAvatarPixelSize = 28
28+
)
2529

2630
// EmailHash represents a pre-generated hash map (mainly used by LibravatarURL, it queries email server's DNS records)
2731
type EmailHash struct {

models/migrations/fixtures/Test_addConfidentialClientColumnToOAuth2ApplicationTable/o_auth2_application.yml renamed to models/migrations/fixtures/Test_AddConfidentialClientColumnToOAuth2ApplicationTable/o_auth2_application.yml

File renamed without changes.

models/migrations/fixtures/Test_addHeaderAuthorizationEncryptedColWebhook/expected_webhook.yml renamed to models/migrations/fixtures/Test_AddHeaderAuthorizationEncryptedColWebhook/expected_webhook.yml

File renamed without changes.

models/migrations/fixtures/Test_addHeaderAuthorizationEncryptedColWebhook/hook_task.yml renamed to models/migrations/fixtures/Test_AddHeaderAuthorizationEncryptedColWebhook/hook_task.yml

File renamed without changes.

models/migrations/fixtures/Test_addHeaderAuthorizationEncryptedColWebhook/webhook.yml renamed to models/migrations/fixtures/Test_AddHeaderAuthorizationEncryptedColWebhook/webhook.yml

File renamed without changes.

models/migrations/fixtures/Test_deleteOrphanedIssueLabels/issue_label.yml renamed to models/migrations/fixtures/Test_DeleteOrphanedIssueLabels/issue_label.yml

File renamed without changes.

models/migrations/fixtures/Test_deleteOrphanedIssueLabels/label.yml renamed to models/migrations/fixtures/Test_DeleteOrphanedIssueLabels/label.yml

File renamed without changes.

models/migrations/fixtures/Test_remigrateU2FCredentials/expected_webauthn_credential.yml renamed to models/migrations/fixtures/Test_RemigrateU2FCredentials/expected_webauthn_credential.yml

File renamed without changes.

0 commit comments

Comments
 (0)