service :mantis_bt do |data, payload|
  begin
    base_url = data['url'].chomp('/')
    full_url = "#{base_url}/plugin.php?page=Source/checkin"

    Net::HTTP.post_form(URI.parse(full_url), payload)

  rescue Net::HTTPBadResponse => boom
    raise GitHub::ServiceConfigurationError, "Invalid configuration"
  end
end

service :mantis_bt do |data, payload|
  begin
    base_url = data['url'].chomp('/')
    full_url = "#{base_url}/plugin.php"

    #add page/action to payload
    payload['page'] = 'Source/checkin'

    Net::HTTP.post_form(URI.parse(full_url), payload)

  rescue Net::HTTPBadResponse => boom
    raise GitHub::ServiceConfigurationError, "Invalid configuration"
  end
end

Add page/action to payload in mantis_rb hook.
Add page/action to payload in mantis_rb hook.

Specifying url-encoded params in the POST request does not work, so the
page variable has to be added to the payload instead.
