Skip to content

Commit

Permalink
Add artifacts cmdlets (#166)
Browse files Browse the repository at this point in the history
* Correct input variable name

* Add GetArtifactFeed

* Fix package version

* Add GetArtifactFeedView

* Update Winget manifest

* Add new itfs alias

* Add group as team admin, add Artifacts initial support (#163)

* Remove restriction on adding groups

* Add AreaPaths to New-Team

* Resume using the latest Azure DevOps SDK

* Fix empty return in GetTeamMember and GetTeamAdmin

* Fix handling of NoDefaultArea, NoBacklogIteration

* Update release notes

* Improve error message when using Server scope

* Update release notes

* Rename TfsQueryMembership to WebApi*

* Add Remove-TfsGitBranch cmdlet

* Bring back support for long queries

* Add artifact feed format

* Update release notes

* Add FeedView formatting

* Add get feed by id

* Add Artifact cmdlets

* Improve parameter handling

* Update artifact formatting

* Bump packages version

* Update release notes

* Add formatting

* Improve parameter logging

* Enumerate returned collections

* Improve "sequence has no elements" message

* Adjust argument list

* Add GetArtifactVersion

* Fix area path handling for new teams

* Update release notes

* Remove flaky test
  • Loading branch information
igoravl authored Apr 3, 2022
1 parent cf05988 commit 63c04ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CSharp/TfsCmdlets/Controllers/Team/SetTeamController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected override IEnumerable Run()

var includeChildren = a.Equals("*") || a.EndsWith("\\*") || a.EndsWith("/*");
var path = a.Equals("*") ?
t.TeamField.DefaultValue :
teamFieldPatch.DefaultValue :
NodeUtil.NormalizeNodePath(includeChildren ? a.Substring(0, a.Length - 2) : a, Project.Name, "Areas", includeTeamProject: true);

if (path.IsWildcard())
Expand Down
2 changes: 1 addition & 1 deletion Docs/ReleaseNotes/2.3.0.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TfsCmdlets Release Notes

## Version 2.3.0 (_02/Apr/2022_)
## Version 2.3.0 (_03/Apr/2022_)

This release adds initial support for Azure Artifacts and fixes a few bugs related to team membership handling.

Expand Down
6 changes: 3 additions & 3 deletions PS/_Tests/TeamProject.Get-TfsTeamProject.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Describe (($MyInvocation.MyCommand.Name -split '\.')[-3]) {
Get-TfsTeamProject -IncludeDetails | Select-Object -ExpandProperty ProcessTemplate | Sort-Object | Should -Be @('Agile', 'Agile', 'Scrum')
}

It 'Should get deleted projects' {
Get-TfsTeamProject -Deleted | Select-Object -ExpandProperty Name | Sort-Object | Should -Be @('DeletedProject')
}
# It 'Should get deleted projects' {
# Get-TfsTeamProject -Deleted | Select-Object -ExpandProperty Name | Sort-Object | Should -Be @('DeletedProject')
# }

}
}
2 changes: 1 addition & 1 deletion RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TfsCmdlets Release Notes

## Version 2.3.0 (_02/Apr/2022_)
## Version 2.3.0 (_03/Apr/2022_)

This release adds initial support for Azure Artifacts and fixes a few bugs related to team membership handling.

Expand Down

0 comments on commit 63c04ab

Please sign in to comment.