This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gh auth login --web | |
| $repo = "" # set repo here | |
| $author = "" # set author here | |
| $issues = gh issue list --repo $repo --author $author --limit 1000 --json number,author,title | ConvertFrom-Json | |
| foreach ($issue in $issues) { | |
| $issueNumber = $issue.number | |
| $issueAuthor = $issue.author.login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gh auth login --web | |
| $owner = "" # leave empty for current user | |
| $repos = gh repo list $owner --fork --json nameWithOwner | ConvertFrom-Json | |
| foreach ($repo in $repos) { | |
| $repoName = $repo.nameWithOwner | |
| Write-Host "Deleting repository: $repoName..." | |
| Read-Host -Prompt "Press ENTER to confirm..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $profileDirPath = New-TemporaryFile | %{ Remove-Item $_; New-Item -ItemType Directory $_ } | |
| Start-Process "c:/Program Files/Google/Chrome/Application/chrome" -ArgumentList "--user-data-dir=$profileDirPath" -Wait | |
| Remove-Item $profileDirPath -Recurse -Force |