Skip to content

Added basic support for ntfy Actions#1436

Merged
caronc merged 4 commits intocaronc:masterfrom
ivangrimaldi:master
Nov 3, 2025
Merged

Added basic support for ntfy Actions#1436
caronc merged 4 commits intocaronc:masterfrom
ivangrimaldi:master

Conversation

@ivangrimaldi
Copy link
Contributor

Description:

Added basic support for ntfy action buttons
It works by accepting as extra parameters a urlencoded list (, = %2C and ; = %2B).
Didn't find so far a better way to handle this list of list with separators conflicting with apprise URLs separators

✅ Apprise Support

Syntax

Valid syntax is as follows:

  • ntfy://ntfy.selfhostedexample.com/mytopic?actions=view%2CGoogle%2Chttps://www.google.com%3Bview%2CBing%2Chttps://www.bing.com

🔐 Parameter Breakdown

Variable Required Description
actions No ntfy action buttons variable

📦 Examples

Sends a simple example

apprise -vv -t "Title" -b "Message content" \
    ntfy://ntfy.selfhostedexample.com/mytopic?actions=view%2CGoogle%2Chttps://www.google.com%3Bview%2CBing%2Chttps://www.bing.com

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • No lint errors (use tox -e lint and even tox -e format to autofix what it can)
  • Test coverage added (use tox -e minimal)
    only fails this one, but it's not related to this pull request
tests/test_apprise_translations.py ...FFs.....     

Copy link
Owner

@caronc caronc left a comment

Choose a reason for hiding this comment

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

Just some a couple of comments (basically change the variable of actions when stored in the class to __actions for alignment only. 1 handling of an if block too. Otherwise eveyrthing else looks great. I'll gladly merge it when fixed up

@codecov
Copy link

codecov bot commented Nov 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.65%. Comparing base (74d5ad2) to head (77a1d57).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1436   +/-   ##
=======================================
  Coverage   99.65%   99.65%           
=======================================
  Files         174      174           
  Lines       22554    22561    +7     
  Branches     3587     3590    +3     
=======================================
+ Hits        22476    22483    +7     
  Misses         70       70           
  Partials        8        8           
Files with missing lines Coverage Δ
apprise/plugins/ntfy.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ivangrimaldi
Copy link
Contributor Author

Renamed actions in __actions, should be good now

@ivangrimaldi ivangrimaldi requested a review from caronc November 2, 2025 19:20
@caronc caronc merged commit 91b6f91 into caronc:master Nov 3, 2025
16 checks passed
@caronc
Copy link
Owner

caronc commented Nov 3, 2025

LGTM... merged; Thank you 🚀

@ivangrimaldi
Copy link
Contributor Author

Thanks to you! Really a great project! 💪

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.

2 participants