Skip to content
Snippets Groups Projects
Commit 93ae686f authored by Johannes Becker's avatar Johannes Becker Committed by Wes Gurney
Browse files

Syntax cleanup

parent 14c5e24a
No related branches found
No related tags found
1 merge request!4954Add support to configure webhook_timeout in gitlab.yaml
This commit is part of merge request !4954. Comments created here will be created in the context of that merge request.
Loading
Loading
@@ -38,18 +38,22 @@ class PivotaltrackerService < Service
def execute(push)
url = 'https://www.pivotaltracker.com/services/v5/source_commits'
push[:commits].each do |commit|
message = {'source_commit' =>
{'commit_id' => commit[:id],
'author' => commit[:author][:name],
'url' => commit[:url],
'message' => commit[:message]}
}
status = PivotaltrackerService.post(url,
body: message.to_json,
headers: {'Content-Type' => 'application/json',
'X-TrackerToken' => token}
)
message = {
'source_commit' => {
'commit_id' => commit[:id],
'author' => commit[:author][:name],
'url' => commit[:url],
'message' => commit[:message]
}
}
PivotaltrackerService.post(
url,
body: message.to_json,
headers: {
'Content-Type' => 'application/json',
'X-TrackerToken' => token
}
)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment