Skip to content

Commit

Permalink
Use github API to delete branches
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Oct 13, 2020
1 parent e7f4560 commit be7fbd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/scripts/Delete-RemoteBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ foreach ($branch in $branches)
{
LogDebug "Branch [ $branchName ] in repo [ $RepoName ] has no associated Pull Request. Deleting Branch"
try{
Delete-References -RepoOwner $RepoOwner -RepoName $RepoName -Ref ($branch.Remove(0,5))
Delete-References -RepoOwner $RepoOwner -RepoName $RepoName -Ref ($branch.Remove(0,5)) -AuthToken $AuthToken
}
catch {
LogError "Delete-References failed with exception:`n$_"
Expand Down

0 comments on commit be7fbd5

Please sign in to comment.