forked from Xerillio/azure-devops-pr-commentator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask.json
79 lines (79 loc) · 2.69 KB
/
task.json
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
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://raw.githubusercontent.com/Microsoft/azure-pipelines-task-lib/master/tasks.schema.json",
"id": "14f0b6f0-543e-4d08-9be9-95a02bd79ea4",
"name": "PrCommentator",
"friendlyName": "Pull Request Commentator",
"description": "This task creates a comment if triggered by a pull request and the specified conditions are met.",
"helpMarkDown": "",
"category": "Utility",
"author": "Casper Sørensen",
"version": {
"Major": 0,
"Minor": 0,
"Patch": 4
},
"instanceNameFormat": "PR Commentator",
"inputs": [
{
"name": "PAT",
"type": "string",
"label": "Personal Access Token",
"defaultValue": "",
"required": false,
"helpMarkDown": "Optional PAT used instead of the system access token to access the Azure API."
},
{
"name": "comment",
"type": "string",
"label": "Comment",
"defaultValue": "",
"required": true,
"helpMarkDown": "The content of the comment to be added."
},
{
"name": "fileGlob",
"type": "string",
"label": "File glob",
"defaultValue": "",
"required": false,
"helpMarkDown": "If specified, a file in the pull request must match this glob expression for a comment to be added."
},
{
"name": "commitExpr",
"type": "string",
"label": "Commit message expression",
"defaultValue": "",
"required": false,
"helpMarkDown": "(Not implemented) Any commit in the pull request must **not** match this expression."
},
{
"name": "targetBranch",
"type": "string",
"label": "Target branch name expression",
"defaultValue": "",
"required": false,
"helpMarkDown": "(Not implemented) The target branch name must match this regular expression."
},
{
"name": "sourceBranch",
"type": "string",
"label": "File glob",
"defaultValue": "",
"required": false,
"helpMarkDown": "(Not implemented) The source branch name must match this regular expression."
},
{
"name": "autoResolve",
"type": "boolean",
"label": "Auto-resolve comments",
"defaultValue": false,
"required": false,
"helpMarkDown": "(Not implemented) The source branch name must match this regular expression."
}
],
"execution": {
"Node16": {
"target": "index.js"
}
}
}