Skip to content

feat: support Zenduty integration key alongside existing API token#223

Merged
kunalnagar merged 1 commit intomainfrom
feat/zenduty-integration-key
Apr 14, 2026
Merged

feat: support Zenduty integration key alongside existing API token#223
kunalnagar merged 1 commit intomainfrom
feat/zenduty-integration-key

Conversation

@kunalnagar
Copy link
Copy Markdown
Member

Summary

  • Add zenduty_integration_key input that uses the Zenduty Events API (https://events.zenduty.com/api/events/<key>/) — no auth header needed, just the key in the URL
  • When zenduty_integration_key is provided it takes precedence; falls back to the existing zenduty_api_key + zenduty_service_id + zenduty_escalation_policy_id path for backwards compatibility
  • Mark the old inputs as deprecated in action.yml descriptions
  • Fix action.yml numeric defaults (587, 20) to strings as required by the schema
  • Add 5 tests covering the new integration key path

No breaking changes — existing users are unaffected.

Closes #135

Test plan

  • npm test passes (58 tests across 9 files)
  • npm run build passes with no type errors
  • npx eslint src/**/*.ts tests/**/*.ts passes with no errors

Add sendAlertsToZendutyViaIntegration using the events API endpoint
(https://events.zenduty.com/api/events/<key>/), which only requires a
single zenduty_integration_key input rather than api_key + service_id +
escalation_policy_id. Integration key is preferred when provided; falls
back to the existing incidents API path for backwards compatibility.

Also fix action.yml numeric defaults (587, 20) to strings as required.

Closes #135.
@kunalnagar kunalnagar merged commit 47943b9 into main Apr 14, 2026
1 check passed
@kunalnagar kunalnagar deleted the feat/zenduty-integration-key branch April 14, 2026 06:03
github-actions bot pushed a commit that referenced this pull request Apr 14, 2026
[skip ci]

## [1.16.0](v1.15.0...v1.16.0) (2026-04-14)

### Features

* support Zenduty integration key alongside existing API token ([#223](#223)) ([47943b9](47943b9)), closes [#135](#135)
@github-actions
Copy link
Copy Markdown

🎉 This issue has been resolved in version 1.16.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Zenduty alert API endpoint

1 participant