Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup & New-GitHubOAuthToken replaced with workaround #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions GitHubBranchFromLabel.psm1

This file was deleted.

7 changes: 5 additions & 2 deletions GitHubBuildFromLabel.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ function Invoke_GitHubBuildFromLabel {
}

# Setup Github access
Write-Host "Setup github access"
New-GitHubOAuthToken -Username $UserName -Password $Password
#Write-Host "Setup github access"
#New-GitHubOAuthToken -Username $UserName -Password $Password
#It has stopped working - looks like Github made some changes to api in V3 but Posh Github has not been updated accordingly
#Work Around is to generate token (https://help.github.com/articles/creating-an-access-token-for-command-line-use) and add it environment variable using powershell command '$env:GITHUB_OAUTH_TOKEN =TokenObtainedEarlier'


# Fetch requested issues
$labelNames = $Labels.split(",")
Expand Down
9 changes: 0 additions & 9 deletions New-GithubBranchFromLabel

This file was deleted.