diff --git a/charts/openab/templates/configmap.yaml b/charts/openab/templates/configmap.yaml index 6f4cf3fd..ddb0e927 100644 --- a/charts/openab/templates/configmap.yaml +++ b/charts/openab/templates/configmap.yaml @@ -129,9 +129,17 @@ data: bot_username = {{ ($cfg.gateway).botUsername | toJson }} {{- end }} {{- end }} + {{- if or ($cfg.cronjobs) (($cfg.cron).usercronEnabled) (($cfg.cron).usercronPath) }} + + [cron] + usercron_enabled = {{ (($cfg.cron).usercronEnabled) | default false }} + {{- if (($cfg.cron).usercronPath) }} + usercron_path = {{ ($cfg.cron).usercronPath | toJson }} + {{- end }} {{- range ($cfg.cronjobs) }} - [[cronjobs]] + [[cron.jobs]] + enabled = {{ .enabled | default true }} schedule = {{ .schedule | toJson }} channel = {{ .channel | toJson }} message = {{ .message | toJson }} @@ -142,6 +150,7 @@ data: thread_id = {{ .threadId | toJson }} {{- end }} {{- end }} + {{- end }} {{- if $cfg.agentsMd }} AGENTS.md: | {{- $cfg.agentsMd | nindent 4 }} diff --git a/charts/openab/values.yaml b/charts/openab/values.yaml index 5aec9179..d5bfd0af 100644 --- a/charts/openab/values.yaml +++ b/charts/openab/values.yaml @@ -182,10 +182,14 @@ agents: # - schedule: "0 9 * * 1-5" # channel: "123456789" # message: "summarize yesterday's merged PRs" + # enabled: true # set to false to disable this job without removing it # platform: "discord" # senderName: "DailyOps" # timezone: "Asia/Taipei" # threadId: "" + cron: + usercronEnabled: false + usercronPath: "" cronjobs: [] persistence: enabled: true