Skip to content

Commit c7e1b95

Browse files
🪲 [Fix]: Add Uri and Hashtable requirements for Invoke-GitHubAPI function (#448)
## Description This pull request updates the `Invoke-GitHubAPI` function in the `src/functions/public/API/Invoke-GitHubAPI.ps1` file to include module requirements for `Uri` and `Hashtable`. These changes ensure that the required modules are explicitly declared for the function to work correctly. - Fixes #447 Key changes: * Added `#Requires` statements to specify dependencies on the `Uri` module (version 1.1.2) and the `Hashtable` module (version 1.1.6). ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 0132564 commit c7e1b95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/functions/public/API/Invoke-GitHubAPI.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
filter Invoke-GitHubAPI {
1+
#Requires -Modules @{ ModuleName = 'Uri'; RequiredVersion = '1.1.2' }
2+
#Requires -Modules @{ ModuleName = 'Hashtable'; RequiredVersion = '1.1.6' }
3+
4+
function Invoke-GitHubAPI {
25
<#
36
.SYNOPSIS
47
Calls the GitHub API using the provided parameters.

0 commit comments

Comments
 (0)