The PSGitHub PowerShell module contains commands to manage GitHub through its REST API.
In your PowerShell automation scripts, you probably wish you had the ability to automate tasks inside of GitHub. Common operations include opening, closing, and searching through issues and pull requests, merging code, creating or deleting repositories, and much more. The PSGitHub module's goal is to enable these operations and simplify the interaction with GitHub from a PowerShell environment!
Automate common tasks inside the popular GitHub platform!
Authenticate to GitHub using a Personal Access Token and one or more user accounts! Tokens are encrypted and cached locally.
In PowerShell, objects are first-class citizens; it's easy to filter issues, repositories, and other GitHub data!
1 Launch PowerShell v5.0, or later.
2 Install the module: Install-Module -Name PSGitHub -Scope CurrentUser -Force
1 First, we need to generate a GitHub Personal Access Token and configure it in the module
Set-GitHubToken
2 Now we can start calling GitHub commands!
$Repository = @{
Name = 'GitHubRocks';
Description = 'This is a new GitHub repository.';
}
New-GitHubRepository @Repository
Praesent faucibus tincidunt porttitor. Nulla porta nunc vestibulum finibus consequat. Fusce tempus, est sit amet efficitur viverra, justo lectus imperdiet sem, sit amet accumsan risus nulla non urna. Sed condimentum ex id pulvinar feugiat. Ut convallis rhoncus purus eget sodales. Curabitur semper sagittis massa non accumsan. Sed euismod vel magna feugiat consequat. Vivamus odio nunc, ornare eu lobortis vel, varius efficitur nunc.
Praesent faucibus tincidunt porttitor. Nulla porta nunc vestibulum finibus consequat. Fusce tempus, est sit amet efficitur viverra, justo lectus imperdiet sem, sit amet accumsan risus nulla non urna. Sed condimentum ex id pulvinar feugiat. Ut convallis rhoncus purus eget sodales. Curabitur semper sagittis massa non accumsan. Sed euismod vel magna feugiat consequat. Vivamus odio nunc, ornare eu lobortis vel, varius efficitur nunc.
Praesent faucibus tincidunt porttitor. Nulla porta nunc vestibulum finibus consequat. Fusce tempus, est sit amet efficitur viverra, justo lectus imperdiet sem, sit amet accumsan risus nulla non urna. Sed condimentum ex id pulvinar feugiat. Ut convallis rhoncus purus eget sodales. Curabitur semper sagittis massa non accumsan. Sed euismod vel magna feugiat consequat. Vivamus odio nunc, ornare eu lobortis vel, varius efficitur nunc.