-
Notifications
You must be signed in to change notification settings - Fork 20
/
payloads.rb
44 lines (42 loc) · 1.02 KB
/
payloads.rb
1
2
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
38
39
40
41
42
43
GITHUB_PAYLOADS = {
"gem-release" => %({
"repository": {
"url": "http://github.com/svenfuchs/gem-release",
"name": "gem-release",
"owner": {
"email": "svenfuchs@artweb-design.de",
"name": "svenfuchs"
}
},
"head_commit": {
"id": "9854592",
"message": "Bump to 0.0.15"
},
"commits": [{
"id": "9854592",
"message": "Bump to 0.0.15",
"timestamp": "2010-10-27 04:32:37",
"committer": {
"name": "Sven Fuchs",
"email": "svenfuchs@artweb-design.de"
},
"author": {
"name": "Christopher Floess",
"email": "chris@flooose.de"
}
}],
"ref": "refs/heads/master",
"compare": "https://github.com/svenfuchs/gem-release/compare/af674bd...9854592"
})
}
QUEUE_PAYLOAD = {
:type => 'push',
:credentials => {
:login => "user",
:token => "12345"
},
:payload => GITHUB_PAYLOADS['gem-release'],
:uuid => Travis.uuid,
:github_guid => 'abc123',
:github_event => 'push'
}