Skip to content

Feature/message sending - #2

Merged
B00tLoad merged 28 commits into
developfrom
feature/message-sending
Aug 31, 2025
Merged

Feature/message sending#2
B00tLoad merged 28 commits into
developfrom
feature/message-sending

Conversation

@B00tLoad

Copy link
Copy Markdown
Member

No description provided.

B00tLoad added 22 commits March 13, 2025 02:30
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>
@B00tLoad
B00tLoad requested review from Copilot and jateute August 30, 2025 19:38
@B00tLoad B00tLoad self-assigned this Aug 30, 2025
@B00tLoad B00tLoad added the enhancement New feature or request label Aug 30, 2025

This comment was marked as outdated.

B00tLoad and others added 3 commits August 30, 2025 21:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@B00tLoad
B00tLoad requested a review from Copilot August 30, 2025 20:14

This comment was marked as outdated.

@B00tLoad
B00tLoad requested a review from Copilot August 30, 2025 20:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread src/Pushover.ts
Comment thread src/Pushover.ts
Comment thread src/Pushover.ts
Comment thread src/Pushover.ts Outdated
* priority: 2,
* emergencyOpts: {
* retry: 60, // Retry every 60 seconds
* expire: 3600 // Expire after 1 hour

Copilot AI Aug 30, 2025

Copy link

Choose a reason for hiding this comment

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

Missing comma after the array in the JSDoc example code block.

Copilot uses AI. Check for mistakes.
@B00tLoad
B00tLoad requested review from jateute and removed request for jateute August 30, 2025 20:18

@jateute jateute left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@B00tLoad
B00tLoad requested a review from jateute August 30, 2025 20:29

@jateute jateute left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@B00tLoad
B00tLoad merged commit f4f6046 into develop Aug 31, 2025
2 checks passed
@B00tLoad
B00tLoad deleted the feature/message-sending branch August 31, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants