You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host"Personal Access Token NOT set"-ForegroundColor DarkYellow
274
+
Write-Host"Create a personal access token at https://github.com/settings/tokens then use Set-GitHubPersonalAccessToken to save it as an environment variable for future use."
275
+
276
+
$ret=$false
277
+
}
278
+
279
+
280
+
if((Get-GitHubPersonalAccountName) -eq$null){
281
+
Write-Host"GitHub username NOT set"-ForegroundColor DarkYellow
282
+
Write-Host"Use Set-GitHubPersonalAccountName to save it as an environment variable for future use."
283
+
284
+
$ret=$false
285
+
}
286
+
287
+
288
+
return$ret
289
+
290
+
}
291
+
292
+
Token-Present
293
+
294
+
Set-Alias nghr New-GitHubRepo-Description "Creates new GitHub repo"
This repo contains a Powershell Module to assisit in interacting with the GitHub API.
4
+
5
+
## The problem ##
6
+
I needed to be able to quickly create a git hub repo and other github users as a collaborator. Manually, this was an interruption to my workflow.
7
+
I also wanted the opportunity to learn more about the GitHub Api : https://developer.github.com/v3/ and brush up on my powershell :-)
8
+
9
+
## GitModule.psm1 ##
10
+
This is a simple powershell module that may be referenced and invoked when needed to create and delete personal repositories. For wexisting repositories, you'll be able to add collaborators.
11
+
12
+
13
+
When the Module is referenced, you'll be prompted to provide your username and a personal access token that you'll have to generate via your GitHub account at https://github.com/settings/tokens
14
+
You'll have to supply these criteria before the module will work. Once supplied you'll no longer be prompted.
15
+
16
+
For a full list of available commands offered by the module, from a PS Command line, run the command
0 commit comments