@slalom-salesforce/sf-pr-comments 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/oclif.manifest.json +259 -0
- package/package.json +6 -5
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.8",
|
|
3
|
+
"commands": {
|
|
4
|
+
"azure:postcomments": {
|
|
5
|
+
"id": "azure:postcomments",
|
|
6
|
+
"summary": "This helps post code review comments from a JSON file to azure repo pull request.",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@slalom-salesforce/sf-pr-comments",
|
|
9
|
+
"pluginAlias": "@slalom-salesforce/sf-pr-comments",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"hiddenAliases": [],
|
|
13
|
+
"examples": [
|
|
14
|
+
"sfdx azure:postcomments --authtoken asdasczxccxc --azureorgname 'organization-name' --azureprojectname 'ProjectName' --azurereponame 'RepoName' --foldernamefordiff '/path/to/diff/folder/' --gitfoldername '/path/to/git/folder' --reviewresultjsonfile '/path/to/code/review/comment/output/in/json/from/sfdx/scanner/staticCodeAnalyzerResults.json' --azureprid 1"
|
|
15
|
+
],
|
|
16
|
+
"flags": {
|
|
17
|
+
"json": {
|
|
18
|
+
"name": "json",
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"description": "Format output as json.",
|
|
21
|
+
"helpGroup": "GLOBAL",
|
|
22
|
+
"allowNo": false
|
|
23
|
+
},
|
|
24
|
+
"authtoken": {
|
|
25
|
+
"name": "authtoken",
|
|
26
|
+
"type": "option",
|
|
27
|
+
"char": "t",
|
|
28
|
+
"summary": "Azure Devops personal access token used to authenicate to repo, ensure this token has write / post permission of repo",
|
|
29
|
+
"required": true,
|
|
30
|
+
"multiple": false
|
|
31
|
+
},
|
|
32
|
+
"azureorguri": {
|
|
33
|
+
"name": "azureorguri",
|
|
34
|
+
"type": "option",
|
|
35
|
+
"char": "o",
|
|
36
|
+
"summary": "Name of Azure Organization where the project resides",
|
|
37
|
+
"required": true,
|
|
38
|
+
"multiple": false
|
|
39
|
+
},
|
|
40
|
+
"azureprojectname": {
|
|
41
|
+
"name": "azureprojectname",
|
|
42
|
+
"type": "option",
|
|
43
|
+
"char": "p",
|
|
44
|
+
"summary": "Name of Azure Project where the repo resides",
|
|
45
|
+
"required": true,
|
|
46
|
+
"multiple": false
|
|
47
|
+
},
|
|
48
|
+
"azurereponame": {
|
|
49
|
+
"name": "azurereponame",
|
|
50
|
+
"type": "option",
|
|
51
|
+
"char": "r",
|
|
52
|
+
"summary": "Name of Azure Repo where the PR is being raised",
|
|
53
|
+
"required": true,
|
|
54
|
+
"multiple": false
|
|
55
|
+
},
|
|
56
|
+
"azureprid": {
|
|
57
|
+
"name": "azureprid",
|
|
58
|
+
"type": "option",
|
|
59
|
+
"char": "i",
|
|
60
|
+
"summary": "Pull request id to post the comments to",
|
|
61
|
+
"required": true,
|
|
62
|
+
"multiple": false
|
|
63
|
+
},
|
|
64
|
+
"foldernamefordiff": {
|
|
65
|
+
"name": "foldernamefordiff",
|
|
66
|
+
"type": "option",
|
|
67
|
+
"char": "d",
|
|
68
|
+
"summary": "Name of the folder where diff files will be stored",
|
|
69
|
+
"required": true,
|
|
70
|
+
"multiple": false
|
|
71
|
+
},
|
|
72
|
+
"reviewresultjsonfile": {
|
|
73
|
+
"name": "reviewresultjsonfile",
|
|
74
|
+
"type": "option",
|
|
75
|
+
"char": "F",
|
|
76
|
+
"summary": "Path to file where code review results are stored in JSON format",
|
|
77
|
+
"required": true,
|
|
78
|
+
"multiple": false
|
|
79
|
+
},
|
|
80
|
+
"gitfoldername": {
|
|
81
|
+
"name": "gitfoldername",
|
|
82
|
+
"type": "option",
|
|
83
|
+
"char": "g",
|
|
84
|
+
"summary": "Path to base project folder where git is initialized",
|
|
85
|
+
"required": true,
|
|
86
|
+
"multiple": false
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"args": {}
|
|
90
|
+
},
|
|
91
|
+
"bitbucket:postcomments": {
|
|
92
|
+
"id": "bitbucket:postcomments",
|
|
93
|
+
"summary": "This helps post code review comments from a JSON file to bitbucket pull request.",
|
|
94
|
+
"strict": true,
|
|
95
|
+
"pluginName": "@slalom-salesforce/sf-pr-comments",
|
|
96
|
+
"pluginAlias": "@slalom-salesforce/sf-pr-comments",
|
|
97
|
+
"pluginType": "core",
|
|
98
|
+
"aliases": [],
|
|
99
|
+
"hiddenAliases": [],
|
|
100
|
+
"examples": [
|
|
101
|
+
"sfdx bitbucket:postcomments --username 'ci_user' --authtoken 'mybitbucketpersonaltoken' --bitbucketworkspace 'slalom' --bitbucketreposlug 'sfdx_poc' --bitbucketprid 1 --foldernamefordiff './srcDiff' --reviewresultjsonfile './codereviewvoilations.json' --gitfoldername './'"
|
|
102
|
+
],
|
|
103
|
+
"flags": {
|
|
104
|
+
"json": {
|
|
105
|
+
"name": "json",
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"description": "Format output as json.",
|
|
108
|
+
"helpGroup": "GLOBAL",
|
|
109
|
+
"allowNo": false
|
|
110
|
+
},
|
|
111
|
+
"username": {
|
|
112
|
+
"name": "username",
|
|
113
|
+
"type": "option",
|
|
114
|
+
"char": "N",
|
|
115
|
+
"summary": "Bitbucket username used to authenicate to repo",
|
|
116
|
+
"required": true,
|
|
117
|
+
"multiple": false
|
|
118
|
+
},
|
|
119
|
+
"authtoken": {
|
|
120
|
+
"name": "authtoken",
|
|
121
|
+
"type": "option",
|
|
122
|
+
"char": "t",
|
|
123
|
+
"summary": "Bitbucket personal access token used to authenicate to repo, ensure this token has write / post permission of repo",
|
|
124
|
+
"required": true,
|
|
125
|
+
"multiple": false
|
|
126
|
+
},
|
|
127
|
+
"bitbucketworkspace": {
|
|
128
|
+
"name": "bitbucketworkspace",
|
|
129
|
+
"type": "option",
|
|
130
|
+
"char": "w",
|
|
131
|
+
"summary": "Name of Bitbucket workspace where the repo resides",
|
|
132
|
+
"required": true,
|
|
133
|
+
"multiple": false
|
|
134
|
+
},
|
|
135
|
+
"bitbucketreposlug": {
|
|
136
|
+
"name": "bitbucketreposlug",
|
|
137
|
+
"type": "option",
|
|
138
|
+
"char": "r",
|
|
139
|
+
"summary": "Name of Bitbucket repo slug where the PR is being raised",
|
|
140
|
+
"required": true,
|
|
141
|
+
"multiple": false
|
|
142
|
+
},
|
|
143
|
+
"bitbucketprid": {
|
|
144
|
+
"name": "bitbucketprid",
|
|
145
|
+
"type": "option",
|
|
146
|
+
"char": "i",
|
|
147
|
+
"summary": "Pull request id to post the comments to",
|
|
148
|
+
"required": true,
|
|
149
|
+
"multiple": false
|
|
150
|
+
},
|
|
151
|
+
"foldernamefordiff": {
|
|
152
|
+
"name": "foldernamefordiff",
|
|
153
|
+
"type": "option",
|
|
154
|
+
"char": "d",
|
|
155
|
+
"summary": "Path of the folder where diff files will be stored",
|
|
156
|
+
"required": true,
|
|
157
|
+
"multiple": false
|
|
158
|
+
},
|
|
159
|
+
"gitfoldername": {
|
|
160
|
+
"name": "gitfoldername",
|
|
161
|
+
"type": "option",
|
|
162
|
+
"char": "g",
|
|
163
|
+
"summary": "Path to base project folder where git is initialized",
|
|
164
|
+
"required": true,
|
|
165
|
+
"multiple": false
|
|
166
|
+
},
|
|
167
|
+
"reviewresultjsonfile": {
|
|
168
|
+
"name": "reviewresultjsonfile",
|
|
169
|
+
"type": "option",
|
|
170
|
+
"char": "F",
|
|
171
|
+
"summary": "Path to file where code review results are stored in JSON format",
|
|
172
|
+
"required": true,
|
|
173
|
+
"multiple": false
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"args": {},
|
|
177
|
+
"PAGELENGTH": 50
|
|
178
|
+
},
|
|
179
|
+
"github:postcomments": {
|
|
180
|
+
"id": "github:postcomments",
|
|
181
|
+
"summary": "This helps post code review comments from a JSON file to Github pull request.",
|
|
182
|
+
"strict": true,
|
|
183
|
+
"pluginName": "@slalom-salesforce/sf-pr-comments",
|
|
184
|
+
"pluginAlias": "@slalom-salesforce/sf-pr-comments",
|
|
185
|
+
"pluginType": "core",
|
|
186
|
+
"aliases": [],
|
|
187
|
+
"hiddenAliases": [],
|
|
188
|
+
"examples": [
|
|
189
|
+
"sfdx github:postcomments --username 'ci_user' --authtoken 'mygithubpersonaltoken' --githubworkspace 'slalom' --githubreposlug 'sfdx_poc' --githubprid 1 --foldernamefordiff './srcDiff' --reviewresultjsonfile './codereviewvoilations.json'\n \n sfdx github:postcomments -N 'ci_user' -t 'mygithubpersonaltoken' -w 'slalom' -r 'sfdx_poc' -i 1 -d './srcDiff' -F './codereviewvoilations.json'"
|
|
190
|
+
],
|
|
191
|
+
"flags": {
|
|
192
|
+
"json": {
|
|
193
|
+
"name": "json",
|
|
194
|
+
"type": "boolean",
|
|
195
|
+
"description": "Format output as json.",
|
|
196
|
+
"helpGroup": "GLOBAL",
|
|
197
|
+
"allowNo": false
|
|
198
|
+
},
|
|
199
|
+
"authtoken": {
|
|
200
|
+
"name": "authtoken",
|
|
201
|
+
"type": "option",
|
|
202
|
+
"char": "t",
|
|
203
|
+
"summary": "Github personal access token used to authenicate to repo, ensure this token has write / post permission of repo\",",
|
|
204
|
+
"required": true,
|
|
205
|
+
"multiple": false
|
|
206
|
+
},
|
|
207
|
+
"githubrepoowner": {
|
|
208
|
+
"name": "githubrepoowner",
|
|
209
|
+
"type": "option",
|
|
210
|
+
"char": "w",
|
|
211
|
+
"summary": "Name of account owner of the Github repository. (The name is not case sensitive).\",",
|
|
212
|
+
"required": true,
|
|
213
|
+
"multiple": false
|
|
214
|
+
},
|
|
215
|
+
"githubreposlug": {
|
|
216
|
+
"name": "githubreposlug",
|
|
217
|
+
"type": "option",
|
|
218
|
+
"char": "r",
|
|
219
|
+
"summary": "Name of Github repo slug where the PR is being raised\"",
|
|
220
|
+
"required": true,
|
|
221
|
+
"multiple": false
|
|
222
|
+
},
|
|
223
|
+
"githubprid": {
|
|
224
|
+
"name": "githubprid",
|
|
225
|
+
"type": "option",
|
|
226
|
+
"char": "i",
|
|
227
|
+
"summary": "Pull request id to post the comments to \"",
|
|
228
|
+
"required": true,
|
|
229
|
+
"multiple": false
|
|
230
|
+
},
|
|
231
|
+
"foldernamefordiff": {
|
|
232
|
+
"name": "foldernamefordiff",
|
|
233
|
+
"type": "option",
|
|
234
|
+
"char": "d",
|
|
235
|
+
"summary": "Name of the folder where diff files will be stored\"",
|
|
236
|
+
"required": true,
|
|
237
|
+
"multiple": false
|
|
238
|
+
},
|
|
239
|
+
"gitfoldername": {
|
|
240
|
+
"name": "gitfoldername",
|
|
241
|
+
"type": "option",
|
|
242
|
+
"char": "g",
|
|
243
|
+
"summary": "Path to base project folder where git is initialized\"",
|
|
244
|
+
"required": true,
|
|
245
|
+
"multiple": false
|
|
246
|
+
},
|
|
247
|
+
"reviewresultjsonfile": {
|
|
248
|
+
"name": "reviewresultjsonfile",
|
|
249
|
+
"type": "option",
|
|
250
|
+
"char": "F",
|
|
251
|
+
"summary": "Path to file where code review results are stored in JSON format\",",
|
|
252
|
+
"required": true,
|
|
253
|
+
"multiple": false
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"args": {}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slalom-salesforce/sf-pr-comments",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "post review comments generated from salesforce scanner to repos like github bitbucket azure repo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"force",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/fayas-mansoor-slalom/sf-pr-comments/issues"
|
|
17
17
|
},
|
|
18
|
-
"repository": "
|
|
18
|
+
"repository": "https://github.com/fayas-mansoor-slalom/sf-pr-comments",
|
|
19
19
|
"license": "BSD-3-Clause",
|
|
20
20
|
"author": "Fayas Mansoor @fayas-mansoor-slalom",
|
|
21
21
|
"type": "commonjs",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@oclif/core": "^2.16.0",
|
|
53
|
+
"@octokit/rest": "^19.0.13",
|
|
53
54
|
"@salesforce/core": "^3.36.2",
|
|
54
55
|
"@salesforce/kit": "^1.8.5",
|
|
55
56
|
"@salesforce/sf-plugins-core": "^2.2.7",
|
|
56
57
|
"azure-devops-node-api": "^14.1.0",
|
|
57
58
|
"diff-parse": "^0.0.13",
|
|
58
59
|
"git-pr-diff-parser": "^0.2.1",
|
|
59
|
-
"octokit": "^5.0.5",
|
|
60
60
|
"tslib": "^2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
@@ -126,7 +126,8 @@
|
|
|
126
126
|
"wireit": {
|
|
127
127
|
"build": {
|
|
128
128
|
"dependencies": [
|
|
129
|
-
"compile"
|
|
129
|
+
"compile",
|
|
130
|
+
"lint"
|
|
130
131
|
]
|
|
131
132
|
},
|
|
132
133
|
"compile": {
|
|
@@ -227,4 +228,4 @@
|
|
|
227
228
|
"output": []
|
|
228
229
|
}
|
|
229
230
|
}
|
|
230
|
-
}
|
|
231
|
+
}
|