File tree Expand file tree Collapse file tree 9 files changed +110
-52
lines changed Expand file tree Collapse file tree 9 files changed +110
-52
lines changed Original file line number Diff line number Diff line change
1
+ name : PR Chat
2
+ on :
3
+ pull_request_target :
4
+ types : [opened, ready_for_review, closed]
5
+
6
+ jobs :
7
+ main :
8
+ runs-on : ubuntu-latest
9
+ if : ${{ !github.event.pull_request.draft }}
10
+ steps :
11
+ - name : Checkout Actions
12
+ uses : actions/checkout@v2
13
+ with :
14
+ repository : " microsoft/vscode-github-triage-actions"
15
+ ref : stable
16
+ path : ./actions
17
+ - name : Install Actions
18
+ run : npm install --production --prefix ./actions
19
+ - name : Run Code Review Chat
20
+ uses : ./actions/code-review-chat
21
+ with :
22
+ token : ${{secrets.GITHUB_TOKEN}}
23
+ slack_token : ${{ secrets.SLACK_TOKEN }}
24
+ slack_bot_name : " VSCodeBot"
25
+ notification_channel : codereview
Original file line number Diff line number Diff line change
1
+ on : [push]
2
+
3
+ name : Tests
4
+
5
+ jobs :
6
+ build :
7
+ strategy :
8
+ matrix :
9
+ os : [macos-latest, ubuntu-latest, windows-latest]
10
+ runs-on : ${{ matrix.os }}
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v3
14
+ - name : Install Node.js
15
+ uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 16.x
18
+ - name : Install root project dependencies
19
+ run : npm install
20
+ - name : Build and run tests
21
+ run : npm test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
"program" : " ${workspaceRoot}/node_modules/mocha/bin/_mocha" ,
9
9
"stopOnEntry" : false ,
10
10
"args" : [
11
+ " ./lib/umd/test" ,
11
12
" --timeout" ,
12
13
" 999999" ,
13
14
" --colors"
Original file line number Diff line number Diff line change
1
+ {
2
+ "git.branchProtection" : [
3
+ " main"
4
+ ],
5
+ "git.branchProtectionPrompt" : " alwaysCommitToNewBranch" ,
6
+ "git.branchRandomName.enable" : true ,
7
+ "githubPullRequests.assignCreated" : " ${user}" ,
8
+ "githubPullRequests.defaultMergeMethod" : " squash"
9
+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ Scanner and parser for JSON with comments.
3
3
4
4
[ ![ npm Package] ( https://img.shields.io/npm/v/jsonc-parser.svg?style=flat-square )] ( https://www.npmjs.org/package/jsonc-parser )
5
5
[ ![ NPM Downloads] ( https://img.shields.io/npm/dm/jsonc-parser.svg )] ( https://npmjs.org/package/jsonc-parser )
6
- [ ![ Build Status] ( https://travis-ci.org/microsoft/node-jsonc-parser.svg?branch=main )] ( https://travis-ci.org/Microsoft/node-jsonc-parser )
6
+ [ ![ Build Status] ( https://github.com/microsoft/node-jsonc-parser/workflows/Tests/badge.svg )] ( https://github.com/microsoft/node-jsonc-parser/workflows/Tests )
7
+ [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
7
8
8
9
Why?
9
10
----
Original file line number Diff line number Diff line change
1
+ name : $(Date:yyyyMMdd)$(Rev:.r)
2
+
3
+ trigger :
4
+ branches :
5
+ include :
6
+ - main
7
+ pr : none
8
+
9
+ resources :
10
+ repositories :
11
+ - repository : templates
12
+ type : github
13
+ name : microsoft/vscode-engineering
14
+ ref : main
15
+ endpoint : Monaco
16
+
17
+ parameters :
18
+ - name : publishPackage
19
+ displayName : 🚀 Publish jsonc-parser
20
+ type : boolean
21
+ default : false
22
+
23
+ extends :
24
+ template : azure-pipelines/npm-package/pipeline.yml@templates
25
+ parameters :
26
+ npmPackages :
27
+ - name : jsonc-parser
28
+
29
+ testPlatforms :
30
+ - name : Linux
31
+ nodeVersions :
32
+ - 16.x
33
+ - name : MacOS
34
+ nodeVersions :
35
+ - 16.x
36
+ - name : Windows
37
+ nodeVersions :
38
+ - 16.x
39
+
40
+ buildSteps :
41
+ - script : npm ci
42
+ displayName : Install dependencies
43
+
44
+ testSteps :
45
+ - script : npm ci
46
+ displayName : Install dependencies
47
+ - script : npm test
48
+ displayName : Test npm package
49
+
50
+ publishPackage : ${{ parameters.publishPackage }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 25
25
"rimraf" : " ^3.0.2"
26
26
},
27
27
"scripts" : {
28
- "prepublishOnly" : " npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs" ,
29
- "postpublish" : " node ./build/post-publish.js" ,
28
+ "prepack" : " npm run clean && npm run compile-esm && npm run test && npm run remove-sourcemap-refs" ,
30
29
"compile" : " tsc -p ./src && npm run lint" ,
31
30
"compile-esm" : " tsc -p ./src/tsconfig.esm.json" ,
32
31
"remove-sourcemap-refs" : " node ./build/remove-sourcemap-refs.js" ,
33
32
"clean" : " rimraf lib" ,
34
33
"watch" : " tsc -w -p ./src" ,
35
34
"test" : " npm run compile && mocha ./lib/umd/test" ,
36
- "lint" : " eslint src/**/*.ts" ,
37
- "preversion" : " npm test" ,
38
- "postversion" : " git push && git push --tags"
35
+ "lint" : " eslint src/**/*.ts"
39
36
}
40
37
}
You can’t perform that action at this time.
0 commit comments