@slalom-salesforce/sf-pr-comments 0.0.2

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.
Files changed (44) hide show
  1. package/LICENSE.txt +12 -0
  2. package/README.md +147 -0
  3. package/lib/commands/azure/postcomments.d.ts +21 -0
  4. package/lib/commands/azure/postcomments.js +139 -0
  5. package/lib/commands/azure/postcomments.js.map +1 -0
  6. package/lib/commands/bitbucket/postcomments.d.ts +22 -0
  7. package/lib/commands/bitbucket/postcomments.js +141 -0
  8. package/lib/commands/bitbucket/postcomments.js.map +1 -0
  9. package/lib/commands/github/postcomments.d.ts +13 -0
  10. package/lib/commands/github/postcomments.js +39 -0
  11. package/lib/commands/github/postcomments.js.map +1 -0
  12. package/lib/helper/azureDevOps.d.ts +14 -0
  13. package/lib/helper/azureDevOps.js +151 -0
  14. package/lib/helper/azureDevOps.js.map +1 -0
  15. package/lib/helper/bitbucketDevOps.d.ts +17 -0
  16. package/lib/helper/bitbucketDevOps.js +206 -0
  17. package/lib/helper/bitbucketDevOps.js.map +1 -0
  18. package/lib/helper/utils.d.ts +20 -0
  19. package/lib/helper/utils.js +215 -0
  20. package/lib/helper/utils.js.map +1 -0
  21. package/lib/index.d.ts +2 -0
  22. package/lib/index.js +9 -0
  23. package/lib/index.js.map +1 -0
  24. package/lib/interfaces/Comment.d.ts +10 -0
  25. package/lib/interfaces/Comment.js +3 -0
  26. package/lib/interfaces/Comment.js.map +1 -0
  27. package/lib/interfaces/CommentsByFile.d.ts +5 -0
  28. package/lib/interfaces/CommentsByFile.js +16 -0
  29. package/lib/interfaces/CommentsByFile.js.map +1 -0
  30. package/lib/interfaces/PrDiff.d.ts +5 -0
  31. package/lib/interfaces/PrDiff.js +3 -0
  32. package/lib/interfaces/PrDiff.js.map +1 -0
  33. package/lib/interfaces/ScannerResult.d.ts +6 -0
  34. package/lib/interfaces/ScannerResult.js +3 -0
  35. package/lib/interfaces/ScannerResult.js.map +1 -0
  36. package/lib/interfaces/Violation.d.ts +11 -0
  37. package/lib/interfaces/Violation.js +3 -0
  38. package/lib/interfaces/Violation.js.map +1 -0
  39. package/messages/azure.postcomments.md +51 -0
  40. package/messages/bitbucket.postcomments.md +55 -0
  41. package/messages/github.postcomments.md +16 -0
  42. package/oclif.manifest.json +209 -0
  43. package/package.json +218 -0
  44. package/schemas/hello-world.json +19 -0
package/package.json ADDED
@@ -0,0 +1,218 @@
1
+ {
2
+ "name": "@slalom-salesforce/sf-pr-comments",
3
+ "description": "post review comments generated from salesforce scanner to repos like github bitbucket azure repo",
4
+ "version": "0.0.2",
5
+ "author": "Fayas Mansoor @fayas-mansoor-slalom",
6
+ "bugs": "https://github.com/fayas-mansoor-slalom/sf-pr-comments/issues",
7
+ "dependencies": {
8
+ "@oclif/core": "^2.0.7",
9
+ "@salesforce/core": "^3.33.1",
10
+ "@salesforce/kit": "^1.8.5",
11
+ "@salesforce/sf-plugins-core": "^2.2.7",
12
+ "azure-devops-node-api": "^12.0.0",
13
+ "git-pr-diff-parser": "^0.2.1",
14
+ "tslib": "^2"
15
+ },
16
+ "devDependencies": {
17
+ "@oclif/plugin-command-snapshot": "^3.3.11",
18
+ "@oclif/test": "^2.3.16",
19
+ "@salesforce/cli-plugins-testkit": "^3.3.1",
20
+ "@salesforce/dev-config": "^3.1.0",
21
+ "@salesforce/dev-scripts": "^4.3.0",
22
+ "@salesforce/plugin-command-reference": "^2.4.1",
23
+ "@salesforce/prettier-config": "^0.0.2",
24
+ "@salesforce/ts-sinon": "1.4.6",
25
+ "@swc/core": "1.3.39",
26
+ "@typescript-eslint/eslint-plugin": "^5.44.0",
27
+ "@typescript-eslint/parser": "^5.54.0",
28
+ "chai": "^4.3.7",
29
+ "eslint": "^8.39.0",
30
+ "eslint-config-prettier": "^8.7.0",
31
+ "eslint-config-salesforce": "^1.1.1",
32
+ "eslint-config-salesforce-license": "^0.2.0",
33
+ "eslint-config-salesforce-typescript": "^1.1.1",
34
+ "eslint-plugin-header": "^3.0.0",
35
+ "eslint-plugin-import": "2.27.5",
36
+ "eslint-plugin-jsdoc": "^39.9.1",
37
+ "eslint-plugin-sf-plugin": "^1.9.2",
38
+ "husky": "^7.0.4",
39
+ "mocha": "^9.2.2",
40
+ "nyc": "^15.1.0",
41
+ "oclif": "^3.7.3",
42
+ "prettier": "^2.8.4",
43
+ "pretty-quick": "^3.1.3",
44
+ "shx": "0.3.4",
45
+ "sinon": "10.0.0",
46
+ "ts-node": "^10.9.1",
47
+ "typescript": "^4.9.5",
48
+ "wireit": "^0.9.5"
49
+ },
50
+ "engines": {
51
+ "node": ">=14.0.0"
52
+ },
53
+ "files": [
54
+ "/lib",
55
+ "/messages",
56
+ "/oclif.manifest.json",
57
+ "/schemas"
58
+ ],
59
+ "homepage": "https://github.com/fayas-mansoor-slalom/sf-pr-comments",
60
+ "keywords": [
61
+ "force",
62
+ "salesforce",
63
+ "sfdx",
64
+ "salesforcedx",
65
+ "sfdx-plugin",
66
+ "sf-plugin",
67
+ "sf"
68
+ ],
69
+ "license": "BSD-3-Clause",
70
+ "main": "lib/index.js",
71
+ "oclif": {
72
+ "commands": "./lib/commands",
73
+ "bin": "sf",
74
+ "topicSeparator": " ",
75
+ "devPlugins": [
76
+ "@oclif/plugin-help",
77
+ "@oclif/plugin-command-snapshot",
78
+ "@salesforce/plugin-command-reference"
79
+ ],
80
+ "topics": {
81
+ "github": {
82
+ "description": "description for github"
83
+ },
84
+ "azure": {
85
+ "description": "description for azure"
86
+ },
87
+ "bitbucket": {
88
+ "description": "description for bitbucket"
89
+ }
90
+ }
91
+ },
92
+ "repository": "salesforcecli/sf-pr-comments",
93
+ "scripts": {
94
+ "build": "wireit",
95
+ "clean": "sf-clean",
96
+ "clean-all": "sf-clean all",
97
+ "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
98
+ "compile": "wireit",
99
+ "docs": "sf-docs",
100
+ "format": "wireit",
101
+ "lint": "wireit",
102
+ "postpack": "shx rm -f oclif.manifest.json",
103
+ "prepack": "sf-prepack",
104
+ "prepare": "sf-install",
105
+ "test": "wireit",
106
+ "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
107
+ "test:only": "wireit",
108
+ "version": "oclif readme"
109
+ },
110
+ "publishConfig": {
111
+ "access": "public"
112
+ },
113
+ "wireit": {
114
+ "build": {
115
+ "dependencies": [
116
+ "compile",
117
+ "lint"
118
+ ]
119
+ },
120
+ "compile": {
121
+ "command": "tsc -p . --pretty --incremental",
122
+ "files": [
123
+ "src/**/*.ts",
124
+ "**/tsconfig.json",
125
+ "messages/**"
126
+ ],
127
+ "output": [
128
+ "lib/**",
129
+ "*.tsbuildinfo"
130
+ ],
131
+ "clean": "if-file-deleted"
132
+ },
133
+ "format": {
134
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
135
+ "files": [
136
+ "src/**/*.ts",
137
+ "test/**/*.ts",
138
+ "schemas/**/*.json",
139
+ "command-snapshot.json",
140
+ ".prettier*"
141
+ ],
142
+ "output": []
143
+ },
144
+ "lint": {
145
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
146
+ "files": [
147
+ "src/**/*.ts",
148
+ "test/**/*.ts",
149
+ "messages/**",
150
+ "**/.eslint*",
151
+ "**/tsconfig.json"
152
+ ],
153
+ "output": []
154
+ },
155
+ "test:compile": {
156
+ "command": "tsc -p \"./test\" --pretty",
157
+ "files": [
158
+ "test/**/*.ts",
159
+ "**/tsconfig.json"
160
+ ],
161
+ "output": []
162
+ },
163
+ "test": {
164
+ "dependencies": [
165
+ "test:compile",
166
+ "test:only",
167
+ "test:command-reference",
168
+ "test:deprecation-policy",
169
+ "lint",
170
+ "test:json-schema"
171
+ ]
172
+ },
173
+ "test:only": {
174
+ "command": "nyc mocha \"test/**/*.test.ts\"",
175
+ "env": {
176
+ "FORCE_COLOR": "2"
177
+ },
178
+ "files": [
179
+ "test/**/*.ts",
180
+ "src/**/*.ts",
181
+ "**/tsconfig.json",
182
+ ".mocha*",
183
+ "!*.nut.ts",
184
+ ".nycrc"
185
+ ],
186
+ "output": []
187
+ },
188
+ "test:command-reference": {
189
+ "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
190
+ "files": [
191
+ "src/**/*.ts",
192
+ "messages/**",
193
+ "package.json"
194
+ ],
195
+ "output": [
196
+ "tmp/root"
197
+ ]
198
+ },
199
+ "test:deprecation-policy": {
200
+ "command": "\"./bin/dev\" snapshot:compare",
201
+ "files": [
202
+ "src/**/*.ts"
203
+ ],
204
+ "output": [],
205
+ "dependencies": [
206
+ "compile"
207
+ ]
208
+ },
209
+ "test:json-schema": {
210
+ "command": "\"./bin/dev\" schema:compare",
211
+ "files": [
212
+ "src/**/*.ts",
213
+ "schemas"
214
+ ],
215
+ "output": []
216
+ }
217
+ }
218
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/HelloWorldResult",
4
+ "definitions": {
5
+ "HelloWorldResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "name": {
9
+ "type": "string"
10
+ },
11
+ "time": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "required": ["name", "time"],
16
+ "additionalProperties": false
17
+ }
18
+ }
19
+ }