SkillAgentSearch skills...

GithubAPI

A self-generating PowerShell module for the GitHub API

Install / Use

/learn @zalexan1996/GithubAPI
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GithubAPI

A dynamically generated PowerShell module for the GitHub RestAPI. Passing $TRUE into the module scrapes https://docs.github.com/en/rest/reference and converts each endpoint into PowerShell functions. Regenerating the function definitions is not necessary in order to use this module because I've done the generating for you!

Requirements

  • Generate a GitHub OAuth token and put it in C:/Users/Username/AppData/Roaming/github.token
  • PowerShell 7.2+ recommended. I did not test this on Windows PowerShell.
  • Selenium module (if you want to regenerate the function definitions)
  • Google Chrome (if you want to regenerate the function definitions)

How to

Make sure your GitHub OAuth token is in $ENV:AppData/github.token before using this module

Import all modules WITHOUT regenerating the function definitions

Import-Module ./GithubAPI

Import Specific Sections WITHOUT regenerating the function definitions

Import-Module ./GithubAPI -ArgumentList @("Branches", "Commits", "Releases", "Repositories"), $FALSE

Import all sections and regenerate the function definitions

Import-Module ./GithubAPI -ArgumentList @("ALL"), $TRUE

TODO

  • ~~Module argument to only include certain sections~~
  • Default Parameters

Related Skills

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated7mo ago
Forks0

Languages

PowerShell

Security Score

67/100

Audited on Aug 6, 2025

No findings