Skip to content

Commit

Permalink
feat: Added optional responders parameter support
Browse files Browse the repository at this point in the history
  • Loading branch information
rockem committed Jun 8, 2024
1 parent f15ad44 commit 6f4c9c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/assert_alert_created_with.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ function assert_created_alert(alert) {
expect(alert.data.tags).to.include(tag);
}
if (responder) {
parts = responder.split(":");
expect(alert.responders).to.deep.include({
[parts[0]]: parts[1],
type: parts[3],
});
// Sadly we can't validate responders with a free account
}
compare_optional_str(alert.data.source, source);
}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ opsgenie.alertV2.create(alertRequest, function (error, result) {
if (error) {
core.setFailed(error.message);
} else {
console.log(`Request sent for creating new alert: ${alertRequest.message}`);
console.log(`Request sent for creating new alert: ${result.requestId}`);
core.setOutput("request_id", result.requestId);
}
});

0 comments on commit 6f4c9c9

Please sign in to comment.