Feature/message sending - #2
Conversation
As it seems I did not fix the eslint not throwing, so I need to temporarily put the call to cmd back in until further investigation Refs: 5304933 Format: text/plain Milestone: none BREAKING-CHANGE: calling the windows command line cmd will probably make the pre-commit hook not work on non-windows systems
Previous glob was `**/*` Format: text/markdown Milestone: none
Message sending is not yet feature complete Missing: - attachments - priority 2 -> retry & expire Format: text/markdown Milestone: minor
- Build files now include sourcemaps and declarations - No longer compiles non-ts files - package.json includes build:watch script Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Added eslint-plugin-only-warn to suppress errors Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
including zod schema validation Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Milestone: none Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Validates user and if specified device Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
removes default user, changes recipient to optionally include device Also fixes url_title replacing message title Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
This is needed by TypeDoc Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a complete message sending feature for the Pushover notification service, replacing the previous type-only implementation with a fully functional API client. The main changes include implementing the core Pushover class with HTTP request handling, comprehensive message validation using Zod schemas, and support for all Pushover API features including emergency notifications, receipt management, and user validation.
Key changes:
- Complete rewrite of the main entry point to export a functional Pushover class
- Implementation of comprehensive Pushover API client with full feature support
- Addition of basic test coverage for the exported functionality
Reviewed Changes
Copilot reviewed 6 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/index.ts | Replaces type definitions with imports from new Pushover class implementation |
| src/Pushover.ts | Implements complete Pushover API client with validation, sending, and management features |
| tests/index.spec.ts | Adds basic test coverage for exported Pushover class |
| package.json | Updates build configuration and adds testing dependencies |
| eslint.config.mjs | Adds eslint-plugin-only-warn for development |
| .husky/pre-commit | Updates pre-commit hook to use pnpm |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| * priority: 2, | ||
| * emergencyOpts: { | ||
| * retry: 60, // Retry every 60 seconds | ||
| * expire: 3600 // Expire after 1 hour |
There was a problem hiding this comment.
Missing comma after the array in the JSDoc example code block.
No description provided.