[PR #697] [MERGED] Converted PowerShell code to use Splatting, and newer PS7 parameters (where available) #1384

Closed
opened 2026-05-07 01:01:51 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/697
Author: @Natfan
Created: 4/5/2023
Status: Merged
Merged: 4/6/2023
Merged by: @binwiederhier

Base: mainHead: patch-1


📝 Commits (1)

  • c63ca95 Converted PowerShell code to use Splatting, and newer PS7 parameters (where available)

📊 Changes

1 file changed (+319 additions, -180 deletions)

View changed files

📝 docs/publish.md (+319 -180)

📄 Description

Also removed the requirement for UseBasicParsing, as Invoke-RestMethod already converts XML/JSON to PSObjects as required.

More info on splatting: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_splatting
More info on Invoke-RestMethod: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/697 **Author:** [@Natfan](https://github.com/Natfan) **Created:** 4/5/2023 **Status:** ✅ Merged **Merged:** 4/6/2023 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`c63ca95`](https://github.com/binwiederhier/ntfy/commit/c63ca958674aa527fce4bd2028d8f1f38f7f2ff8) Converted PowerShell code to use Splatting, and newer PS7 parameters (where available) ### 📊 Changes **1 file changed** (+319 additions, -180 deletions) <details> <summary>View changed files</summary> 📝 `docs/publish.md` (+319 -180) </details> ### 📄 Description Also removed the requirement for UseBasicParsing, as Invoke-RestMethod already converts XML/JSON to PSObjects as required. More info on splatting: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_splatting More info on Invoke-RestMethod: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:01:51 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1384
No description provided.