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

fix: standardize SyncFlows and SyncNamespaceFiles branch to main #98

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions src/main/java/io/kestra/plugin/git/PushFlows.java
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }}"
"""
)
Expand All @@ -106,7 +106,7 @@ public class PushFlows extends AbstractPushTask<PushFlows.Output> {
)
@PluginProperty(dynamic = true)
@Builder.Default
private String branch = "kestra";
private String branch = "main";

@Schema(
title = "Directory to which flows should be pushed.",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/kestra/plugin/git/PushNamespaceFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class PushNamespaceFiles extends AbstractPushTask<PushNamespaceFiles.Outp
)
@PluginProperty(dynamic = true)
@Builder.Default
private String branch = "kestra";
private String branch = "main";

@Schema(
title = "The namespace from which files should be pushed to the `gitDirectory`."
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/kestra/plugin/git/SyncNamespaceFiles.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class SyncNamespaceFiles extends AbstractSyncTask<URI, SyncNamespaceFiles
)
@PluginProperty(dynamic = true)
@Builder.Default
private String branch = "kestra";
private String branch = "main";

@Schema(
title = "The namespace from which files should be synced from the `gitDirectory` to Kestra."
Expand Down