3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/pipedream/dsl/pipeline/github.rb', line 3
def github(props)
source = props.delete(:source)
source = (source)
owner,repo = source.split("/")
branch = props.delete(:branch) || "master"
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,
action_type_id: {
category: "Source",
owner: "ThirdParty",
provider: "GitHub",
version: "1",
},
run_order: @run_order,
configuration: {
branch: branch,
o_auth_token: o_auth_token,
owner: owner,
poll_for_source_changes: poll_for_source_changes,
repo: repo,
},
output_artifacts: [name: "#{source_name}Artifact"]
}
action(props.reverse_merge(default))
end
|