Skip to content

Commit 4b27681

Browse files
authored
Fix switched attributes (#192)
* Fix switched attributes * Update release notes * Update actions * Update WiX
1 parent 299f72f commit 4b27681

File tree

5 files changed

+37
-29
lines changed

5 files changed

+37
-29
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
TFSCMDLETS_COLLECTION_URL: 'https://dev.azure.com/tfscmdlets'
2323
steps:
2424
- name: Checkout code
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
with:
2727
fetch-depth: 0
2828
- name: Initialize CodeQL
@@ -37,37 +37,37 @@ jobs:
3737
- name: Perform CodeQL Analysis
3838
uses: github/codeql-action/analyze@v2
3939
- name: Publish Nuget
40-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v3
4141
with:
4242
name: nuget
4343
path: "out/Nuget/*.nupkg"
4444
- name: Publish Chocolatey
45-
uses: actions/upload-artifact@v2
45+
uses: actions/upload-artifact@v3
4646
with:
4747
name: chocolatey
4848
path: "out/Chocolatey/*.nupkg"
4949
- name: Publish Portable
50-
uses: actions/upload-artifact@v2
50+
uses: actions/upload-artifact@v3
5151
with:
5252
name: portable
5353
path: "out/Portable/*.zip"
5454
- name: Publish MSI
55-
uses: actions/upload-artifact@v2
55+
uses: actions/upload-artifact@v3
5656
with:
5757
name: msi
5858
path: "out/msi/*"
5959
- name: Publish WinGet
60-
uses: actions/upload-artifact@v2
60+
uses: actions/upload-artifact@v3
6161
with:
6262
name: winget
6363
path: "out/winget/**"
6464
- name: Publish Docs
65-
uses: actions/upload-artifact@v2
65+
uses: actions/upload-artifact@v3
6666
with:
6767
name: docs
6868
path: "out/docs/*.zip"
6969
- name: Publish Release Notes
70-
uses: actions/upload-artifact@v2
70+
uses: actions/upload-artifact@v3
7171
with:
7272
name: releasenotes
7373
path: "docs/ReleaseNotes/**"
@@ -84,7 +84,7 @@ jobs:
8484
BUILD_NAME: ${{ needs.Build.outputs.BUILD_NAME }}
8585
steps:
8686
- name: Download all artifacts
87-
uses: actions/download-artifact@v2
87+
uses: actions/download-artifact@v3
8888
- name: Extract release notes
8989
id: extract_release_notes
9090
shell: pwsh
@@ -138,7 +138,7 @@ jobs:
138138
BUILD_NAME: ${{ needs.Staging.outputs.BUILD_NAME }}
139139
steps:
140140
- name: Cancel Previous Runs
141-
uses: styfle/cancel-workflow-action@0.8.0
141+
uses: styfle/cancel-workflow-action@0.10.0
142142
with:
143143
access_token: ${{ github.token }}
144144
- name: Promote release
@@ -173,12 +173,12 @@ jobs:
173173
RELEASE_NOTES: ${{ needs.Release.outputs.RELEASE_NOTES }}
174174
steps:
175175
- name: Checkout code
176-
uses: actions/checkout@v2
176+
uses: actions/checkout@v3
177177
with:
178178
fetch-depth: 0
179179
path: site
180180
- name: Download artifact
181-
uses: actions/download-artifact@v2
181+
uses: actions/download-artifact@v3
182182
with:
183183
name: docs
184184
- name: Publish site
@@ -206,7 +206,7 @@ jobs:
206206
PSGALLERY_KEY: ${{ secrets.API_KEY }}
207207
steps:
208208
- name: Download artifact
209-
uses: actions/download-artifact@v2
209+
uses: actions/download-artifact@v3
210210
with:
211211
name: portable
212212
- name: Publish artifact
@@ -226,7 +226,7 @@ jobs:
226226
if: ${{ github.event_name != 'pull_request' }}
227227
steps:
228228
- name: Download artifact
229-
uses: actions/download-artifact@v2
229+
uses: actions/download-artifact@v3
230230
with:
231231
name: nuget
232232
- name: Install Nuget 5.x
@@ -248,7 +248,7 @@ jobs:
248248
CHOCO_KEY: ${{ secrets.API_KEY }}
249249
steps:
250250
- name: Download artifact
251-
uses: actions/download-artifact@v2
251+
uses: actions/download-artifact@v3
252252
with:
253253
name: chocolatey
254254
- name: Install Chocolatey
@@ -280,7 +280,7 @@ jobs:
280280
git fetch upstream
281281
git checkout -b "TfsCmdlets_$BUILD_NAME"
282282
- name: Download artifact
283-
uses: actions/download-artifact@v2
283+
uses: actions/download-artifact@v3
284284
with:
285285
name: winget
286286
path: winget-pkgs
@@ -324,7 +324,7 @@ jobs:
324324
steps:
325325
- name: Tweet
326326
id: tweet
327-
uses: snow-actions/tweet@v1.1.0
327+
uses: snow-actions/tweet@v1.3.0
328328
env:
329329
BUILD_NAME: ${{ needs.Release.outputs.BUILD_NAME }}
330330
CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}

CSharp/TfsCmdlets/Cmdlets/WorkItem/NewWorkItem.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ partial class NewWorkItem
3333
/// Specifies the area path of the work item.
3434
/// </summary>
3535
[Parameter]
36-
[WorkItemField("System.IterationPath", FieldType.TreePath)]
36+
[WorkItemField("System.AreaPath", FieldType.TreePath)]
3737
public string AreaPath { get; set; }
3838

3939
/// <summary>
4040
/// Specifies the iteration path of the work item.
4141
/// </summary>
4242
[Parameter]
43-
[WorkItemField("System.AreaPath", FieldType.TreePath)]
43+
[WorkItemField("System.IterationPath", FieldType.TreePath)]
4444
public string IterationPath { get; set; }
4545

4646
/// <summary>

Docs/ReleaseNotes/2.5.1.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# TfsCmdlets Release Notes
2+
3+
## Version 2.5.1 (_22/Aug/2022_)
4+
5+
This release fixes a bug in `New-TfsWorkItem`.
6+
7+
## Fixes
8+
9+
* Fixes [#191](https://github.com/igoravl/TfsCmdlets/issues/191), where AreaPath and IterationPath arguments are switched.

RELEASENOTES.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
# TfsCmdlets Release Notes
22

3-
## Version 2.5.0 (_03/Aug/2022_)
3+
## Version 2.5.1 (_22/Aug/2022_)
44

5-
This release introduces new cmdlets and fixes a few bugs.
6-
7-
## New cmdlets
8-
9-
* **[Start-TfsBuild](https://tfscmdlets.dev/docs/cmdlets/Pipeline/Build/Start-TfsBuild/)**: Starts a pipeline (YAML) / build (Classic).
10-
* **[Get-TfsTeamProjectMember](https://tfscmdlets.dev/docs/cmdlets/TeamProject/Members/Get-TfsTeamProjectMember/)**: Returns the members of a team project, as shown in the "Members" widget in the team project's Summary page (closes [#59](https://github.com/igoravl/TfsCmdlets/issues/59)).
5+
This release fixes a bug in `New-TfsWorkItem`.
116

127
## Fixes
138

14-
* Fixes a bug in `New-TfsWorkItem` and `Set-TfsWorkItem` where IterationPath was not being set.
9+
* Fixes a bug in `New-TfsWorkItem` where AreaPath and IterationPath arguments are switched.
1510

1611
-----------------------
1712

1813
## Previous Versions
1914

20-
## Version 2.4.1 (_20/Jul/2022_)
15+
### Version 2.5.0 (_03/Aug/2022_)
16+
17+
See release notes [here](Docs/ReleaseNotes/2.5.0.md).
18+
19+
### Version 2.4.1 (_20/Jul/2022_)
2120

2221
See release notes [here](Docs/ReleaseNotes/2.4.1.md).
2322

Setup/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="WiX" version="3.10.2" />
3+
<package id="WiX" version="3.11.2" />
44
</packages>

0 commit comments

Comments
 (0)