From a46cc415a8b819043ee6d71a6de490d03e3a48ef Mon Sep 17 00:00:00 2001 From: Anna Geller Date: Thu, 10 Oct 2024 18:08:55 +0200 Subject: [PATCH] fix: standardize Sync --- src/main/java/io/kestra/plugin/git/PushFlows.java | 6 +++--- src/main/java/io/kestra/plugin/git/PushNamespaceFiles.java | 2 +- src/main/java/io/kestra/plugin/git/SyncNamespaceFiles.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/kestra/plugin/git/PushFlows.java b/src/main/java/io/kestra/plugin/git/PushFlows.java index 2a68917..3431fb4 100644 --- a/src/main/java/io/kestra/plugin/git/PushFlows.java +++ b/src/main/java/io/kestra/plugin/git/PushFlows.java @@ -58,7 +58,7 @@ Using this task, you can push one or more flows from a given namespace (and opti url: https://github.com/kestra-io/scripts # required string username: git_username # required string needed for Auth with Git password: "{{ secret('GITHUB_ACCESS_TOKEN') }}" - branch: kestra # optional, uses "kestra" by default + branch: main commitMessage: "add flows {{ now() }}" # optional string dryRun: true # if true, you'll see what files will be added, modified or deleted based on the state in Git without overwriting the files yet @@ -93,7 +93,7 @@ Using this task, you can push one or more flows from a given namespace (and opti url: https://github.com/kestra-io/scripts username: git_username password: "{{ secret('GITHUB_ACCESS_TOKEN') }}" - branch: kestra + branch: main commitMessage: "add flow {{ flow.namespace ~ '.' ~ flow.id }}" """ ) @@ -106,7 +106,7 @@ public class PushFlows extends AbstractPushTask { ) @PluginProperty(dynamic = true) @Builder.Default - private String branch = "kestra"; + private String branch = "main"; @Schema( title = "Directory to which flows should be pushed.", diff --git a/src/main/java/io/kestra/plugin/git/PushNamespaceFiles.java b/src/main/java/io/kestra/plugin/git/PushNamespaceFiles.java index ef53cbb..dc955c8 100644 --- a/src/main/java/io/kestra/plugin/git/PushNamespaceFiles.java +++ b/src/main/java/io/kestra/plugin/git/PushNamespaceFiles.java @@ -70,7 +70,7 @@ public class PushNamespaceFiles extends AbstractPushTask