forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
* upstream/main: Use `object-fit: contain` for oauth2 custom icons (go-gitea#26493) add disable workflow feature (go-gitea#26413) Move dropzone progress bar to bottom to show filename when uploading (go-gitea#26492) Handle base64 decoding correctly to avoid panic (go-gitea#26483) Allow to archive labels (go-gitea#26478)
- Loading branch information
Showing
37 changed files
with
341 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2023 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package v1_21 //nolint | ||
import ( | ||
"code.gitea.io/gitea/modules/timeutil" | ||
|
||
"xorm.io/xorm" | ||
) | ||
|
||
func AddArchivedUnixColumInLabelTable(x *xorm.Engine) error { | ||
type Label struct { | ||
ArchivedUnix timeutil.TimeStamp `xorm:"DEFAULT NULL"` | ||
} | ||
return x.Sync(new(Label)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2023 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package repo | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestActionsConfig(t *testing.T) { | ||
cfg := &ActionsConfig{} | ||
cfg.DisableWorkflow("test1.yaml") | ||
assert.EqualValues(t, []string{"test1.yaml"}, cfg.DisabledWorkflows) | ||
|
||
cfg.DisableWorkflow("test1.yaml") | ||
assert.EqualValues(t, []string{"test1.yaml"}, cfg.DisabledWorkflows) | ||
|
||
cfg.EnableWorkflow("test1.yaml") | ||
assert.EqualValues(t, []string{}, cfg.DisabledWorkflows) | ||
|
||
cfg.EnableWorkflow("test1.yaml") | ||
assert.EqualValues(t, []string{}, cfg.DisabledWorkflows) | ||
|
||
cfg.DisableWorkflow("test1.yaml") | ||
cfg.DisableWorkflow("test2.yaml") | ||
cfg.DisableWorkflow("test3.yaml") | ||
assert.EqualValues(t, "test1.yaml,test2.yaml,test3.yaml", cfg.ToString()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.