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

Clarify how to specify an incident key #68

Merged
merged 1 commit into from
Apr 20, 2020
Merged

Conversation

orien
Copy link
Member

@orien orien commented Apr 19, 2020

The best way to specify a Pagerduty incident key is via the incident method.

Let's raise an error if it's provided via an unsupported mechanism.

request = details.merge(payload: payload)
request.reject! { |key| PAYLOAD_ATTR.include?(key) }
request
end
Copy link
Member Author

Choose a reason for hiding this comment

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

Extract a method to keep the method length low.

Copy link
Contributor

@johnsyweb johnsyweb left a comment

Choose a reason for hiding this comment

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

Thanks Orien.

Copy link

@runlevel5 runlevel5 left a comment

Choose a reason for hiding this comment

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

👍

@orien orien merged commit f4e5322 into master Apr 20, 2020
@orien orien deleted the clarify-trigger-incident-key branch April 20, 2020 03:18
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