You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.go 633B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package setting
  4. import (
  5. "code.gitea.io/gitea/modules/log"
  6. )
  7. // Actions settings
  8. var (
  9. Actions = struct {
  10. Storage // how the created logs should be stored
  11. Enabled bool
  12. DefaultActionsURL string `ini:"DEFAULT_ACTIONS_URL"`
  13. }{
  14. Enabled: false,
  15. DefaultActionsURL: "https://gitea.com",
  16. }
  17. )
  18. func newActions() {
  19. sec := Cfg.Section("actions")
  20. if err := sec.MapTo(&Actions); err != nil {
  21. log.Fatal("Failed to map Actions settings: %v", err)
  22. }
  23. Actions.Storage = getStorage("actions_log", "", nil)
  24. }