lib/pipedream/dsl/pipeline/github.rb in pipedream-0.4.7 vs lib/pipedream/dsl/pipeline/github.rb in pipedream-0.4.8
- old
+ new
@@ -11,12 +11,14 @@
branch = props.delete(:branch) || "master" # always delete branch prop
o_auth_token = props.delete(:auth_token)
poll_for_source_changes = props.delete(:poll_for_source_changes) || "false"
+ source_name = props.delete(:source_name) || "Main"
+
default = {
- name: "Source",
+ name: source_name,
action_type_id: {
category: "Source",
owner: "ThirdParty",
provider: "GitHub",
version: "1",
@@ -27,10 +29,10 @@
o_auth_token: o_auth_token,
owner: owner,
poll_for_source_changes: poll_for_source_changes,
repo: repo,
},
- output_artifacts: [name: "SourceArtifact"]
+ output_artifacts: [name: "#{source_name}Artifact"]
}
action(props.reverse_merge(default))
end
def extract_repo_source(url)
\ No newline at end of file