Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cancel_downtime_by_scope method by setting send_json to true. #205

Merged
merged 3 commits into from
Dec 9, 2019

Conversation

armcburney
Copy link
Member

We currently don't send the { 'scope' => scope } JSON options, because we had the set_json parameter for the request function set to false. This PR fixes the cancel_downtime_by_scope method to send the JSON in the request.

Current functionality:

dog.cancel_downtime_by_scope("github:armcburney")
=> ["400", {"errors"=>["Expected scope"]}]

@armcburney armcburney merged commit 12c8718 into master Dec 9, 2019
@armcburney armcburney deleted the armcburney/fix_cancel_downtime_by_scope branch December 9, 2019 15:44
@@ -1,3 +1,3 @@
module Dogapi
VERSION = '1.37.1'
VERSION = '1.37.2'
Copy link
Contributor

@nmuesch nmuesch Dec 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to change this while creating features, it'll get bumped at release time 😄 (No need to change it back, just wanted to give a heads up)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants