-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.csharp.getissuesforrelease.msbuild
66 lines (60 loc) · 2.72 KB
/
test.csharp.getissuesforrelease.msbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="11.0"
DefaultTargets="_Custom_GetIssueInformationForCurrentRelease"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
The full file path to the script that handles custom collection of the issue information for the current
release.
The script is expected be a custom implementation of the GatherIssues.msbuild script.
The script file can be called anything as long as it contains a target called:
'_Custom_GetIssueInformationForCurrentRelease'
The target should create an ItemGroup called 'ReleaseNoteIssues' containing the issue information. The each item in the item
group should describe one issue in the following format:
<item include="ISSUE_NUMBER">
<Title>ISSUE_TITLE</Title>
<State>ISSUE_STATE</State>
<Body>ISSUE_BODY</Body>
<UserName>ISSUE_USERNAME</UserName>
<UserUrl>ISSUE_USERURL</UserUrl>
<Labels>ISSUE_LABELS</Labels>
</item>
Where:
ISSUE_NUMBER - The ID of the issue.
ISSUE_TITLE - The title of the issue.
ISSUE_STATE - The state of the issue, e.g. open, closed etc.
ISSUE_BODY - The description of the issue.
ISSUE_USERNAME - The name of the user to whom the issue is assigned.
ISSUE_USERURL - The URL for the user, if it exists.
ISSUE_LABELS - The labels / type for the issue.
-->
<Target Name="_Custom_GetIssueInformationForCurrentRelease">
<CreateItem
Include="1"
AdditionalMetadata="Title=A;Url=B;State=open;Body=C;UserName=D;UserUrl=E;Labels=F">
<Output
TaskParameter="Include"
ItemName="ReleaseNoteIssues"/>
</CreateItem>
<CreateItem
Include="2"
AdditionalMetadata="Title=G;Url=H;State=open;Body=I;UserName=J;UserUrl=K;Labels=L">
<Output
TaskParameter="Include"
ItemName="ReleaseNoteIssues"/>
</CreateItem>
<CreateItem
Include="3"
AdditionalMetadata="Title=M;Url=N;State=open;Body=O;UserName=P;UserUrl=Q;Labels=R">
<Output
TaskParameter="Include"
ItemName="ReleaseNoteIssues"/>
</CreateItem>
<CreateItem
Include="4"
AdditionalMetadata="Title=S;Url=T;State=open;Body=U;UserName=V;UserUrl=W;Labels=X">
<Output
TaskParameter="Include"
ItemName="ReleaseNoteIssues"/>
</CreateItem>
</Target>
</Project>