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
* - Added Update-VSTeamGitRepositoryDefaultBranch to allow for changing the default branch of a repository.
- Fixed bad link in README.md
* Clean up comments, and fixed/updated urls
* Added logic to only try to import vstem-lib.dll if exists and is not imported.
* Added fake Get-VSTeamGitRepository call (since pester doesn't recognize it as something when mocked)
Removed call to dot source common.ps1
Removed debug messages
Cleaned up comments
Bumped Version
Updated Changelog
* - Fixed default branch name check.
- Added logic to pull refs and validate branch name
- Updated call to use splatting for readability
* - Added mock for Get-VSTeamGitRef
- Added test for non-existent branch name
* - Added sample file for gitref call in Update-VSTeamGitRepositoryDefaultBranch
* removed some line in changelog
Co-authored-by: Bleattler <Robert.Bleattler@freedompay.com>
Co-authored-by: Sebastian Schütze <sebastian.schuetze@razorspoint.com>
# Without adding this call, an exception is thrown stating that Get-VSTeamGitRepository is a part of VSTeam but the module could not be loaded. Because we're not testing this function, but it is used in the function we are testing I created it here to facilitate the tests.
8
+
functionGet-VSTeamGitRepository {
9
+
param(
10
+
$Name,
11
+
$ProjectName
12
+
)
13
+
$Repo= _callAPI -Method Get -ProjectName $ProjectName`
# Changed to only import this type if the dll is missing and exists in the path, since PS throws an exception when trying to import a dll already in memory
0 commit comments