Commit fa8588827e45946464298fb7e36f4dcd24f0c4fb
1 parent
64e012a3
Exists in
master
and in
4 other branches
Syntax cleanup
Showing
1 changed file
with
16 additions
and
12 deletions
Show diff stats
app/models/pivotaltracker_service.rb
... | ... | @@ -38,18 +38,22 @@ class PivotaltrackerService < Service |
38 | 38 | def execute(push) |
39 | 39 | url = 'https://www.pivotaltracker.com/services/v5/source_commits' |
40 | 40 | push[:commits].each do |commit| |
41 | - message = {'source_commit' => | |
42 | - {'commit_id' => commit[:id], | |
43 | - 'author' => commit[:author][:name], | |
44 | - 'url' => commit[:url], | |
45 | - 'message' => commit[:message]} | |
46 | - } | |
47 | - status = PivotaltrackerService.post(url, | |
48 | - body: message.to_json, | |
49 | - headers: {'Content-Type' => 'application/json', | |
50 | - 'X-TrackerToken' => token} | |
51 | - ) | |
41 | + message = { | |
42 | + 'source_commit' => { | |
43 | + 'commit_id' => commit[:id], | |
44 | + 'author' => commit[:author][:name], | |
45 | + 'url' => commit[:url], | |
46 | + 'message' => commit[:message] | |
47 | + } | |
48 | + } | |
49 | + PivotaltrackerService.post( | |
50 | + url, | |
51 | + body: message.to_json, | |
52 | + headers: { | |
53 | + 'Content-Type' => 'application/json', | |
54 | + 'X-TrackerToken' => token | |
55 | + } | |
56 | + ) | |
52 | 57 | end |
53 | 58 | end |
54 | - | |
55 | 59 | end | ... | ... |