Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement actions #21937

Merged
merged 475 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
475 commits
Select commit Hold shift + click to select a range
564937a
feat: bots_service.CreateCommitStatus
wolfogre Nov 29, 2022
3793d55
fix: commit status
wolfogre Nov 29, 2022
3682fc3
Merge branch 'main' into feature/bots
wolfogre Nov 29, 2022
26ac9ab
Merge branch 'go-gitea:main' into feature/bots
wolfogre Nov 30, 2022
9808d08
fix: remove useless codes
wolfogre Nov 30, 2022
4487f04
feat: new way to notify
wolfogre Nov 30, 2022
847d65d
Merge branch 'main' into feature/bots
wolfogre Nov 30, 2022
c5c9b4a
Merge branch 'main' into feature/bots
wolfogre Dec 1, 2022
a29babe
fix: skip initing bots storage if disabled
wolfogre Dec 1, 2022
ab69fdc
feat: more notifications
wolfogre Dec 1, 2022
b2745bf
feat: support disable bots completely
wolfogre Dec 1, 2022
d2a4c10
chore: code lint
wolfogre Dec 1, 2022
9bd773e
Merge branch 'main' into feature/bots
wolfogre Dec 2, 2022
f869c98
chore: resolve conflict
wolfogre Dec 2, 2022
b9ab9b2
Merge branch 'go-gitea:main' into feature/bots
wolfogre Dec 2, 2022
3dc5547
Merge branch 'main' into feature/bots
wolfogre Dec 2, 2022
76869e4
Merge branch 'main' into feature/bots
wolfogre Dec 2, 2022
d4842ac
chore: resolve conflict
wolfogre Dec 2, 2022
b0d6c7b
chore: use SPDX-License-Identifier
wolfogre Dec 2, 2022
bd1af5b
Merge branch 'main' into feature/bots
wolfogre Dec 5, 2022
fdd3444
fix: add missing ctx
wolfogre Dec 5, 2022
704f720
refactor: rename packages
wolfogre Dec 5, 2022
5f74b35
refactor: rename files
wolfogre Dec 5, 2022
67c5c88
refactor: rename import alias
wolfogre Dec 5, 2022
f2c7bbb
refactor: rename to actions-proto-go
wolfogre Dec 6, 2022
c07d0c1
refactor: rename model
wolfogre Dec 6, 2022
56368f3
refactor: use ctx in models
wolfogre Dec 6, 2022
223782c
refactor: rename to actions
wolfogre Dec 6, 2022
da51e18
chore: make go-licenses
wolfogre Dec 6, 2022
4142218
chore: rename dbfs prefix
wolfogre Dec 6, 2022
f6f29d4
chore: upgrade act to v0.234.0
wolfogre Dec 6, 2022
55df4fd
chore: rename BOTS
wolfogre Dec 6, 2022
ab0a60e
Merge branch 'main' into feature/bots
wolfogre Dec 6, 2022
eaf266a
chore: fix lint
wolfogre Dec 6, 2022
26b8756
fix: deal with empty repo
wolfogre Dec 6, 2022
8377fc0
Merge branch 'main' into feature/bots
wolfogre Dec 7, 2022
202bbe2
docs: update comparison
wolfogre Dec 7, 2022
3dc7ffc
fix: add settings.actions_desc
wolfogre Dec 8, 2022
4914395
fix: remove timestamp
wolfogre Dec 8, 2022
266a122
Merge branch 'main' into feature/bots
wolfogre Dec 8, 2022
10ebbec
chore: rename to action
wolfogre Dec 9, 2022
9b6b848
fix: layout
wolfogre Dec 9, 2022
901914e
feat: move summary to header
wolfogre Dec 9, 2022
d378a78
Merge branch 'main' into feature/bots
wolfogre Dec 9, 2022
dfa1b61
Merge branch 'main' into feature/bots
wolfogre Dec 12, 2022
22203ee
Update modules/notification/actions/helper.go
wolfogre Dec 12, 2022
dbef504
fix: truncated title
wolfogre Dec 12, 2022
7a34d37
fix: use ctx
wolfogre Dec 12, 2022
86d6598
fix: use LONGBLOB
wolfogre Dec 12, 2022
dbdfd26
chore: rename to workflows.go
wolfogre Dec 12, 2022
4da0a65
chore: migrations v236
wolfogre Dec 12, 2022
a6e39ca
Merge branch 'main' into feature/bots
wolfogre Dec 12, 2022
59c3707
Merge branch 'main' into feature/bots
wolfogre Dec 12, 2022
705fbb4
Fix permission check on http push
lunny Dec 12, 2022
d41fb40
docs: comment for V1AlphaRoute
wolfogre Dec 12, 2022
5cfc48c
fix: template format
wolfogre Dec 12, 2022
cca23dd
feat: rename bot user to gitea-actions
wolfogre Dec 12, 2022
d4c47ac
fix: remove useless grpc routers
wolfogre Dec 12, 2022
cc19ab5
Merge branch 'main' into feature/bots
wolfogre Dec 12, 2022
1c9288f
fix: list runners
wolfogre Dec 12, 2022
e69e829
fix: remove ActionTask.GetRepo
wolfogre Dec 12, 2022
d73db88
fix: use right class
wolfogre Dec 12, 2022
ef20a02
fix: use web.Bind
wolfogre Dec 12, 2022
4f7597b
chore: mod tidy
wolfogre Dec 12, 2022
6c62213
Merge branch 'main' into feature/bots
wolfogre Dec 13, 2022
ab98c3f
Merge branch 'main' into feature/bots
wolfogre Dec 19, 2022
215d80f
Update models/actions/run.go
wolfogre Dec 19, 2022
b03f6e5
fix: remove meanless code
wolfogre Dec 19, 2022
825b838
fix: margin
wolfogre Dec 19, 2022
9c3395c
chore: removed to shared
wolfogre Dec 19, 2022
118a454
fix: trasfer log when stop zombie tasks
wolfogre Dec 19, 2022
ab4350b
Merge branch 'main' into feature/bots
wolfogre Dec 20, 2022
b54f148
Revert "Add AES GCM encryption provider"
wolfogre Dec 22, 2022
88e813d
Revert "Add simple master key provider for secret encryption"
wolfogre Dec 22, 2022
d183b32
Merge branch 'main' into feature/bots
wolfogre Dec 22, 2022
058675f
fix: use new secrets
wolfogre Dec 22, 2022
34be6b5
fix: remove old secret model
wolfogre Dec 22, 2022
f8d8209
Merge remote-tracking branch 'origin/feature/bots' into feature/bots
wolfogre Dec 22, 2022
aee01d1
chore: remove FindObjects
wolfogre Dec 22, 2022
fa701d0
chore: remove Hijack
wolfogre Dec 22, 2022
abf96d1
chore: remove secrets ini
wolfogre Dec 22, 2022
c326ea5
chore: update copyright
wolfogre Dec 22, 2022
9eafbad
chore: reorganize locale of actions
wolfogre Dec 22, 2022
cce781a
chore: remove comments
wolfogre Dec 23, 2022
4782792
Merge branch 'main' into feature/bots
wolfogre Dec 23, 2022
255d778
fix: last eight token
wolfogre Dec 23, 2022
950a5ad
Merge branch 'main' into feature/bots
wolfogre Dec 23, 2022
a6917db
fix: do not init cron for actions when it's disabled
wolfogre Dec 23, 2022
3c68011
fix: tidy tmpl
wolfogre Dec 23, 2022
3462760
Merge branch 'main' into feature/bots
wolfogre Dec 23, 2022
a67e14d
chore: fmt code
wolfogre Dec 23, 2022
567996d
Merge branch 'main' into feature/bots
wolfogre Dec 26, 2022
9fd6b38
Merge branch 'main' into feature/bots
wolfogre Dec 27, 2022
d995fc6
Merge branch 'main' into feature/bots
wolfogre Dec 28, 2022
c355172
fix: check reqRepoActionsWriter
wolfogre Dec 27, 2022
1f48a9a
fix: check if can_cancel and can_rerun
wolfogre Dec 28, 2022
c393a9c
Merge branch 'main' into feature/bots
wolfogre Dec 28, 2022
d8f2343
fix: auth return
wolfogre Dec 28, 2022
bc7b575
fix: update locale
wolfogre Dec 29, 2022
6bbce09
fix: remove old secrets tab
wolfogre Dec 29, 2022
8717c42
fix: CanRerun
wolfogre Dec 29, 2022
f11a31e
Merge branch 'main' into feature/bots
wolfogre Dec 29, 2022
c840940
fix: import
wolfogre Dec 29, 2022
ec02056
refactor: mv modules/notification/actions to services/actions
wolfogre Dec 29, 2022
5ae2816
chore: use webhook_model alias
wolfogre Dec 29, 2022
a145ec2
fix: do not init actions service when disabled
wolfogre Dec 29, 2022
3db95bf
fix: check oauth2 user id
wolfogre Dec 29, 2022
133437d
Merge branch 'main' into feature/bots
wolfogre Dec 30, 2022
53afbce
Merge branch 'main' into feature/bots
wolfogre Jan 3, 2023
9b0203b
Update custom/conf/app.example.ini
wolfogre Jan 4, 2023
2917057
Update models/actions/status.go
wolfogre Jan 4, 2023
9b00ded
Update models/actions/task_list.go
wolfogre Jan 4, 2023
0f824b6
Update models/user/user_system.go
wolfogre Jan 4, 2023
1faa885
Update models/user/user_system.go
wolfogre Jan 4, 2023
66785e2
Update modules/actions/log.go
wolfogre Jan 4, 2023
cd2af5d
fix: check if steps are empty
wolfogre Jan 3, 2023
d33e9fc
chore: sort svgs
wolfogre Jan 4, 2023
5e58ede
docs: comment for DEFAULT_ACTIONS_URL
wolfogre Jan 4, 2023
5925722
chore: move statusNames
wolfogre Jan 4, 2023
5d938eb
fix: use container.Set
wolfogre Jan 4, 2023
7f6a803
fix: omit total in FindTasks
wolfogre Jan 4, 2023
2c686e8
fix: add restraints for models
wolfogre Jan 4, 2023
d5e6d95
refactor: rename Number to Index
wolfogre Jan 4, 2023
911aea1
docs: add actions to cheat sheet
wolfogre Jan 4, 2023
0887e98
refactor: getPoster
wolfogre Jan 4, 2023
6148e4c
fix: rename to GetPossibleUserByID
wolfogre Jan 4, 2023
95167fd
chore: rename to NumActionRuns
wolfogre Jan 4, 2023
a222cb5
docs: fix format
wolfogre Jan 4, 2023
925f7f1
chore: new way to trim entries
wolfogre Jan 4, 2023
0ecb0b4
Update modules/setting/actions.go
wolfogre Jan 4, 2023
4b15a33
chore: format code
wolfogre Jan 4, 2023
0d2945f
Merge branch 'main' into feature/bots
wolfogre Jan 4, 2023
e35a046
Update services/auth/basic.go
wolfogre Jan 4, 2023
066097a
Update services/forms/runner.go
wolfogre Jan 4, 2023
c3b37c4
Update services/actions/clear_tasks.go
wolfogre Jan 4, 2023
b4c692a
chore: format code
wolfogre Jan 5, 2023
2ae7f54
Merge branch 'main' into feature/bots
wolfogre Jan 5, 2023
b884772
Apply suggestions from code review
wolfogre Jan 5, 2023
24446cb
fix: add less for runners
wolfogre Jan 5, 2023
6017329
chore: lint codes
wolfogre Jan 5, 2023
ede9a5f
chore: add comments
wolfogre Jan 5, 2023
bb3eb5e
fix: use ctx
wolfogre Jan 5, 2023
e8dbe82
fix: use %w
wolfogre Jan 5, 2023
4bb8604
chore: add comments
wolfogre Jan 5, 2023
08383bd
chore: simplify truncateContent
wolfogre Jan 5, 2023
c3d7f15
chore: remove CreateRunnerForm
wolfogre Jan 5, 2023
eee6624
fix: simplify deleting
wolfogre Jan 5, 2023
c510fdb
chore: simplify IsActions
wolfogre Jan 5, 2023
a4b2cf2
feat: calculate duration
wolfogre Jan 5, 2023
b1013a4
refactor: shard runner templates
wolfogre Jan 5, 2023
92b117f
test: fix import cycle in dbfs test
wolfogre Jan 5, 2023
730af9b
fix: add missing translations
wolfogre Jan 5, 2023
22496aa
Update models/actions/task.go
wolfogre Jan 5, 2023
63e8238
Update models/actions/task_step.go
wolfogre Jan 5, 2023
2ac8410
fix: translation keys
wolfogre Jan 5, 2023
49e307b
fix: show never when LastOnline is 0
wolfogre Jan 5, 2023
a4df058
Merge branch 'main' into feature/bots
wolfogre Jan 6, 2023
d7aa501
fix: NumClosedActionRuns
wolfogre Jan 6, 2023
9bd3ea4
fix: map to DEFAULT_ACTIONS_URL
wolfogre Jan 6, 2023
ff75cbd
chore: fix log
wolfogre Jan 6, 2023
326ae5d
fix: keep original commit message
wolfogre Jan 6, 2023
05c08ec
chore: format runner id
wolfogre Jan 6, 2023
4bc6d73
fix: split and trim labels
wolfogre Jan 6, 2023
a6f8f10
fix: add docs link for runner
wolfogre Jan 6, 2023
91dfef0
feat: LocaleString for status
wolfogre Jan 6, 2023
243b769
feat: locale status for runner
wolfogre Jan 6, 2023
7a4d4f0
chore: use new dropdown icon
wolfogre Jan 6, 2023
e61d655
feat: show no runners available
wolfogre Jan 6, 2023
6f6bfc5
feat: more translations
wolfogre Jan 6, 2023
aba1c03
feat: improve listing runs
wolfogre Jan 6, 2023
fc1d243
chore: remove fetchMockData
wolfogre Jan 6, 2023
4b1d3c7
fix: ignore events caused by actions for actions notifier only
wolfogre Jan 6, 2023
748fd3d
chore: add init.go to actions
wolfogre Jan 6, 2023
e249b39
chore: rename to actions.runners.last_online
wolfogre Jan 6, 2023
4ebd096
fix: remove spaces between labels
wolfogre Jan 6, 2023
4c65c1d
Merge branch 'main' into feature/bots
wolfogre Jan 6, 2023
21db670
fix: use webhook_module
wolfogre Jan 6, 2023
4b2bf7a
Merge branch 'main' into feature/bots
wolfogre Jan 6, 2023
5e9d4f7
Merge branch 'main' into feature/bots
wolfogre Jan 9, 2023
f414fd6
Merge branch 'main' into feature/bots
wolfogre Jan 9, 2023
f114a9c
fix: ctx for NewCommitStatus
wolfogre Jan 9, 2023
3c2bffd
Merge branch 'main' into feature/bots
wolfogre Jan 9, 2023
335873e
chore: remove exp
wolfogre Jan 10, 2023
5442440
fix: order by index
wolfogre Jan 10, 2023
e65f69f
Merge branch 'main' into feature/bots
wolfogre Jan 10, 2023
39a5e72
chore: update go-licenses
wolfogre Jan 10, 2023
409f11c
feat: use template modal
wolfogre Jan 10, 2023
883781c
Merge branch 'main' into feature/bots
wolfogre Jan 10, 2023
b171042
Merge branch 'main' into feature/bots
wolfogre Jan 11, 2023
e73d010
Update web_src/js/components/RepoActionView.vue
wolfogre Jan 11, 2023
1e45c2c
fix: use declared colors
wolfogre Jan 11, 2023
59beb2d
feat: add _actions.less
wolfogre Jan 11, 2023
11b0f84
chore: getLogsContainer
wolfogre Jan 11, 2023
563d798
chore: logsContainer
wolfogre Jan 11, 2023
0f6c886
chore: rename
wolfogre Jan 11, 2023
d572c22
Merge branch 'main' into feature/bots
wolfogre Jan 11, 2023
3edc5d7
chore: format css
wolfogre Jan 11, 2023
1c87be2
chore: use SliceContains
wolfogre Jan 11, 2023
14593a8
fix: fetch data with url
wolfogre Jan 11, 2023
f5b5538
fix: style for log lines
wolfogre Jan 11, 2023
2e8aff7
chore: init ansiToHTML in data()
wolfogre Jan 11, 2023
5e898b3
fix: format duration in backend
wolfogre Jan 11, 2023
358d494
fix: i18nCancel
wolfogre Jan 11, 2023
83534ad
chore: rename to fetchJob
wolfogre Jan 11, 2023
1072f99
fix: extract the fetch into a submethod
wolfogre Jan 11, 2023
2e0bf2b
fix: rename elJobStepLogs
wolfogre Jan 11, 2023
ec88ef3
Merge branch 'main' into feature/bots
wolfogre Jan 12, 2023
6e40494
fix: UpdateTaskByState
wolfogre Jan 12, 2023
5fb2d7f
feat: improve view page
wolfogre Jan 12, 2023
87f7874
chore: use slice as LogIndexes
wolfogre Jan 12, 2023
85e5307
Merge branch 'main' into feature/bots
wolfogre Jan 12, 2023
26925e2
chore: fix go-licenses
wolfogre Jan 12, 2023
b71f539
chore: improve loadJob
wolfogre Jan 12, 2023
d5e0ee5
fix: var names
wolfogre Jan 12, 2023
ec4f646
chore: stop interval
wolfogre Jan 12, 2023
11fec35
Revert "chore: logsContainer"
wolfogre Jan 12, 2023
4c0cc46
fix: props type
wolfogre Jan 12, 2023
011e59e
chore: improve runnr list ui
wolfogre Jan 12, 2023
1f2b706
fix: remove unnecessary delay
wolfogre Jan 12, 2023
7cc2dfc
feat: improve rerun button ui
wolfogre Jan 12, 2023
2e5a834
Merge branch 'main' into feature/bots
wolfogre Jan 12, 2023
1bf2441
chore: update go-licenses
wolfogre Jan 12, 2023
c664e52
chore: no need to upgrade x/tools
wolfogre Jan 12, 2023
fe46662
Merge branch 'main' into feature/bots
wolfogre Jan 13, 2023
8b626db
fix: marshal empty slice to [] in json
wolfogre Jan 13, 2023
1c44b7e
Merge branch 'main' into feature/bots
wolfogre Jan 13, 2023
9500a5a
Merge branch 'main' into feature/bots
wolfogre Jan 13, 2023
15fc91e
Merge branch 'main' into feature/bots
wolfogre Jan 14, 2023
1c30052
Merge branch 'main' into feature/bots
wolfogre Jan 16, 2023
313f104
Merge branch 'main' into feature/bots
wolfogre Jan 17, 2023
60e86ab
Merge branch 'main' into feature/bots
wolfogre Jan 18, 2023
98107ef
chore: format code
wolfogre Jan 18, 2023
39b55de
Update options/locale/locale_en-US.ini
wolfogre Jan 18, 2023
011e320
fix: fix id style
wolfogre Jan 18, 2023
faad49e
fix: number color
wolfogre Jan 18, 2023
5030055
Revert "fix: i18nCancel"
wolfogre Jan 18, 2023
49c49e7
fix: use cancel icon
wolfogre Jan 18, 2023
3b1fa79
chore: lint code
wolfogre Jan 18, 2023
c70da27
fix: lint code
wolfogre Jan 18, 2023
075981b
Merge branch 'main' into feature/bots
wolfogre Jan 19, 2023
d402cc2
Merge branch 'main' into feature/bots
wolfogre Jan 20, 2023
ad78f9d
Merge branch 'main' into feature/bots
wolfogre Jan 20, 2023
64c8c0d
Merge branch 'main' into feature/bots
lunny Jan 20, 2023
452a672
Merge branch 'main' into feature/bots
wolfogre Jan 27, 2023
2552ec1
Merge branch 'main' into feature/bots
wolfogre Jan 28, 2023
dd319a9
chore: follow new NotifyIssueChangeStatus
wolfogre Jan 28, 2023
46e1dbf
Merge branch 'main' into feature/bots
wolfogre Jan 29, 2023
5071924
Merge branch 'main' into feature/bots
wolfogre Jan 29, 2023
d03975f
Merge branch 'main' into feature/bots
wolfogre Jan 30, 2023
b8b856c
Merge branch 'main' into feature/bots
jolheiser Jan 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions assets/go-licenses.json

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
package cmd

import (
"encoding/base64"
"fmt"
"os"

"code.gitea.io/gitea/modules/generate"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/services/secrets"

"github.com/mattn/go-isatty"
"github.com/urfave/cli"
Expand All @@ -31,6 +35,7 @@ var (
microcmdGenerateInternalToken,
microcmdGenerateLfsJwtSecret,
microcmdGenerateSecretKey,
microcmdGenerateMasterKey,
},
}

Expand All @@ -52,6 +57,12 @@ var (
Usage: "Generate a new SECRET_KEY",
Action: runGenerateSecretKey,
}

microcmdGenerateMasterKey = cli.Command{
Name: "MASTER_KEY",
Usage: "Generate a new MASTER_KEY",
Action: runGenerateMasterKey,
}
)

func runGenerateInternalToken(c *cli.Context) error {
Expand Down Expand Up @@ -98,3 +109,46 @@ func runGenerateSecretKey(c *cli.Context) error {

return nil
}

func runGenerateMasterKey(c *cli.Context) error {
// Silence the console logger
log.DelNamedLogger("console")
log.DelNamedLogger(log.DEFAULT)

// Read configuration file
setting.LoadFromExisting()

providerType := secrets.MasterKeyProviderType(setting.MasterKeyProvider)
if providerType == secrets.MasterKeyProviderTypeNone {
return fmt.Errorf("configured master key provider does not support key generation")
}

if err := secrets.Init(); err != nil {
return err
}

scrts, err := secrets.GenerateMasterKey()
if err != nil {
return err
}

if len(scrts) > 1 {
fmt.Println("Unseal secrets:")
for i, secret := range scrts {
if i > 0 {
fmt.Printf("\n")
}
fmt.Printf("%s\n", base64.StdEncoding.EncodeToString(secret))
}
}

if providerType == secrets.MasterKeyProviderTypePlain && len(scrts) == 1 {
fmt.Printf("%s", base64.StdEncoding.EncodeToString(scrts[0]))

if isatty.IsTerminal(os.Stdout.Fd()) {
fmt.Printf("\n")
}
}

return nil
}
2 changes: 2 additions & 0 deletions cmd/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Gitea or set your environment appropriately.`, "")
userID, _ := strconv.ParseInt(os.Getenv(repo_module.EnvPusherID), 10, 64)
prID, _ := strconv.ParseInt(os.Getenv(repo_module.EnvPRID), 10, 64)
deployKeyID, _ := strconv.ParseInt(os.Getenv(repo_module.EnvDeployKeyID), 10, 64)
actionPerm, _ := strconv.ParseInt(os.Getenv(repo_module.EnvActionPerm), 10, 64)

hookOptions := private.HookOptions{
UserID: userID,
Expand All @@ -194,6 +195,7 @@ Gitea or set your environment appropriately.`, "")
GitPushOptions: pushOptions(),
PullRequestID: prID,
DeployKeyID: deployKeyID,
ActionPerm: int(actionPerm),
}

scanner := bufio.NewScanner(os.Stdin)
Expand Down
15 changes: 15 additions & 0 deletions custom/conf/app.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2481,3 +2481,18 @@ ROUTER = console
;PROXY_URL =
;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
;PROXY_HOSTS =

; [actions]
;; Enable/Disable actions capabilities
;ENABLED = false
lunny marked this conversation as resolved.
Show resolved Hide resolved
;DEFAULT_ACTIONS_URL = https://gitea.com
wolfogre marked this conversation as resolved.
Show resolved Hide resolved
lunny marked this conversation as resolved.
Show resolved Hide resolved

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; settings for packages, will override storage setting
wolfogre marked this conversation as resolved.
Show resolved Hide resolved
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;[storage.actions_log]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; storage type
;STORAGE_TYPE = local
2 changes: 1 addition & 1 deletion docs/content/doc/features/comparison.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ _Symbols used in table:_
| Deploy Tokens | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
wolfogre marked this conversation as resolved.
Show resolved Hide resolved
| Repository Tokens with write rights | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
| RSS Feeds | ✓ | ✘ | ✓ | ✘ | ✘ | ✘ | ✘ |
| Built-in CI/CD | [✘](https://github.com/go-gitea/gitea/issues/13539) | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| Built-in CI/CD | | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| Subgroups: groups within groups | [✘](https://github.com/go-gitea/gitea/issues/1872) | ✘ | ✘ | ✓ | ✓ | ✘ | ✓ |
| Interaction with other instances | [/](https://github.com/go-gitea/gitea/issues/18240) | ✘ | ✘ | ✘ | ✘ | ✘ | ✘ |
| Mermaid diagrams in Markdown | ✓ | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/features/comparison.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _表格中的符号含义:_
| 内置容器 Registry | ✓ | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| 外部 Git 镜像 | ✓ | ✓ | ✘ | ✘ | ✓ | ✓ | ✓ |
| WebAuthn (2FA) | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ? |
| 内置 CI/CD | | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| 内置 CI/CD | | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| 子组织:组织内的组织 | [✘](https://github.com/go-gitea/gitea/issues/1872) | ✘ | ✘ | ✓ | ✓ | ✘ | ✓ |

#### 代码管理
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/features/comparison.zh-tw.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ menu:
| 內建 Container Registry | [✘](https://github.com/go-gitea/gitea/issues/2316) | ✘ | ✘ | ✓ | ✓ | ✘ | ✘ |
| 對外部 Git 鏡像 | ✓ | ✓ | ✘ | ✘ | ✓ | ✓ | ✓ |
| FIDO (2FA) | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✘ |
| 內建 CI/CD | | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| 內建 CI/CD | | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| 子群組: 群組中的群組 | ✘ | ✘ | ✘ | ✓ | ✓ | ✘ | ✓ |

## 程式碼管理
Expand Down
26 changes: 19 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module code.gitea.io/gitea
go 1.18

require (
code.gitea.io/actions-proto-go v0.2.0
code.gitea.io/gitea-vet v0.2.2
code.gitea.io/sdk/gitea v0.15.1
codeberg.org/gusted/mcaptcha v0.0.0-20220723083913-4f3072e1d570
Expand All @@ -17,6 +18,7 @@ require (
github.com/PuerkitoBio/goquery v1.8.0
github.com/alecthomas/chroma/v2 v2.4.0
github.com/blevesearch/bleve/v2 v2.3.4
github.com/bufbuild/connect-go v1.3.1
github.com/buildkite/terminal-to-html/v3 v3.7.0
github.com/caddyserver/certmagic v0.17.2
github.com/chi-middleware/proxy v1.1.1
Expand Down Expand Up @@ -71,6 +73,7 @@ require (
github.com/microcosm-cc/bluemonday v1.0.20
github.com/minio/minio-go/v7 v7.0.39
github.com/msteinert/pam v1.1.0
github.com/nektos/act v0.0.0
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/niklasfasching/go-org v1.6.5
github.com/oliamb/cutter v0.2.2
Expand All @@ -82,7 +85,7 @@ require (
github.com/santhosh-tekuri/jsonschema/v5 v5.0.1
github.com/sergi/go-diff v1.2.0
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
github.com/stretchr/testify v1.8.0
github.com/stretchr/testify v1.8.1
github.com/syndtr/goleveldb v1.0.0
github.com/tstranex/u2f v1.0.0
github.com/unrolled/render v1.5.0
Expand All @@ -95,11 +98,14 @@ require (
go.jolheiser.com/hcaptcha v0.0.4
go.jolheiser.com/pwn v0.0.3
golang.org/x/crypto v0.2.1-0.20221112162523-6fad3dfc1891
golang.org/x/exp v0.0.0-20221114191408-850992195362
golang.org/x/net v0.2.0
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1
golang.org/x/sys v0.2.0
golang.org/x/text v0.4.0
golang.org/x/tools v0.1.12
golang.org/x/tools v0.2.0
google.golang.org/grpc v1.47.0
google.golang.org/protobuf v1.28.1
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/ini.v1 v1.67.0
gopkg.in/yaml.v3 v3.0.1
Expand Down Expand Up @@ -163,6 +169,7 @@ require (
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect
github.com/envoyproxy/protoc-gen-validate v0.6.2 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
github.com/fullstorydev/grpcurl v1.8.1 // indirect
Expand All @@ -171,6 +178,7 @@ require (
github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect
github.com/go-enry/go-oniguruma v1.2.1 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/go-openapi/analysis v0.21.4 // indirect
github.com/go-openapi/errors v0.20.3 // indirect
github.com/go-openapi/inflect v0.19.0 // indirect
Expand Down Expand Up @@ -206,7 +214,7 @@ require (
github.com/hashicorp/go-retryablehttp v0.7.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jessevdk/go-flags v1.5.0 // indirect
github.com/jhump/protoreflect v1.8.2 // indirect
Expand All @@ -220,6 +228,7 @@ require (
github.com/magiconair/properties v1.8.6 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/markbates/going v1.0.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mholt/acmez v1.0.4 // indirect
Expand All @@ -243,7 +252,9 @@ require (
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/rhysd/actionlint v1.6.22 // indirect
github.com/rivo/uniseg v0.4.2 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/rs/xid v1.4.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
Expand All @@ -253,7 +264,7 @@ require (
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.5.0 // indirect
github.com/spf13/cobra v1.6.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.12.0 // indirect
Expand Down Expand Up @@ -283,12 +294,11 @@ require (
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/zap v1.23.0 // indirect
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
golang.org/x/mod v0.6.0 // indirect
golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90 // indirect
google.golang.org/grpc v1.47.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand All @@ -307,3 +317,5 @@ exclude github.com/gofrs/uuid v3.2.0+incompatible
exclude github.com/gofrs/uuid v4.0.0+incompatible

exclude github.com/goccy/go-json v0.4.11

replace github.com/nektos/act => gitea.com/gitea/act v0.234.0
Loading