File tree Expand file tree Collapse file tree
src/sourcegraph/stream-search Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ name: Pipeline
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
88
99jobs :
1010 check :
@@ -13,10 +13,10 @@ jobs:
1313 runs-on : macos-latest
1414
1515 steps :
16- - uses : actions/checkout@v2
17- - uses : actions/setup-node@v2
18- with :
19- node-version : 16.x
20- - run : npm install
21- - run : npm run lint
22- - run : npm run build
16+ - uses : actions/checkout@v2
17+ - uses : actions/setup-node@v2
18+ with :
19+ node-version : 16.x
20+ - run : npm install
21+ - run : npm run lint -- --exitOnError
22+ - run : npm run build
Original file line number Diff line number Diff line change 11{
22 "printWidth": 120,
33 "singleQuote": false
4- }
4+ }
Original file line number Diff line number Diff line change 9999 "@typescript-eslint/parser" : " ^5.0.0" ,
100100 "eslint" : " ^7.32.0" ,
101101 "eslint-config-prettier" : " ^8.3.0" ,
102+ "prettier" : " ^2.5.1" ,
102103 "react-devtools" : " ~4.13.0" ,
103104 "typescript" : " ^4.4.3"
104105 },
105106 "scripts" : {
106107 "build" : " ray build -e dist" ,
107108 "dev" : " ray develop" ,
108109 "lint" : " ray lint" ,
109- "fmt" : " prettier -w ./" ,
110+ "fmt" : " prettier --config .prettierrc - w ./" ,
110111 "raycast-publish" : " .scripts/raycast-publish.sh"
111112 }
112113}
Original file line number Diff line number Diff line change @@ -81,17 +81,15 @@ export async function performSearch(
8181 } ;
8282
8383 handlers . onResults (
84- event . data . map (
85- ( match ) : SearchResult => {
86- const url = `${ src . instance } ${ getMatchUrl ( match ) } ` ;
87- if ( match . type === "commit" ) {
88- // Commit stuff comes already markdown-formatted?? so strip formatting
89- match . label = stripMarkdown . processSync ( match . label ) ?. value . toString ( ) . split ( `› ` ) . pop ( ) || "" ;
90- match . detail = stripMarkdown . processSync ( match . detail ) ?. value . toString ( ) ;
91- }
92- return { url, match } ;
84+ event . data . map ( ( match ) : SearchResult => {
85+ const url = `${ src . instance } ${ getMatchUrl ( match ) } ` ;
86+ if ( match . type === "commit" ) {
87+ // Commit stuff comes already markdown-formatted?? so strip formatting
88+ match . label = stripMarkdown . processSync ( match . label ) ?. value . toString ( ) . split ( `› ` ) . pop ( ) || "" ;
89+ match . detail = stripMarkdown . processSync ( match . detail ) ?. value . toString ( ) ;
9390 }
94- )
91+ return { url, match } ;
92+ } )
9593 ) ;
9694 } ) ;
9795
You can’t perform that action at this time.
0 commit comments