File tree Expand file tree Collapse file tree 3 files changed +13
-18
lines changed
Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ function createWebhook(repo: string) {
7575
7676function updateWebhook ( repo : string , hookId : number ) {
7777 if ( dryRun ) {
78- console . log ( `[dry-run] update webhook ${ hookId } for ${ repo } -> ${ webhookUrl } ` )
78+ console . log (
79+ `[dry-run] update webhook ${ hookId } for ${ repo } -> ${ webhookUrl } ` ,
80+ )
7981 return
8082 }
8183
Original file line number Diff line number Diff line change @@ -8,11 +8,7 @@ const LazyNavbarAuthControls = React.lazy(() =>
88 default : m . NavbarAuthControls ,
99 } ) ) ,
1010)
11- import {
12- Link ,
13- useLocation ,
14- useMatches ,
15- } from '@tanstack/react-router'
11+ import { Link , useLocation , useMatches } from '@tanstack/react-router'
1612import { NetlifyImage } from './NetlifyImage'
1713import {
1814 Code ,
Original file line number Diff line number Diff line change @@ -5,20 +5,17 @@ export type DocsWebhookSource = {
55 repo : string
66}
77
8- const docsWebhookSourceMap = libraries . reduce (
9- ( map , library ) => {
10- if ( ! library . latestBranch ) {
11- return map
12- }
8+ const docsWebhookSourceMap = libraries . reduce ( ( map , library ) => {
9+ if ( ! library . latestBranch ) {
10+ return map
11+ }
1312
14- const refs = map . get ( library . repo ) ?? new Set < string > ( )
15- refs . add ( library . latestBranch )
16- map . set ( library . repo , refs )
13+ const refs = map . get ( library . repo ) ?? new Set < string > ( )
14+ refs . add ( library . latestBranch )
15+ map . set ( library . repo , refs )
1716
18- return map
19- } ,
20- new Map < string , Set < string > > ( ) ,
21- )
17+ return map
18+ } , new Map < string , Set < string > > ( ) )
2219
2320export const docsWebhookSources = Array . from ( docsWebhookSourceMap . entries ( ) )
2421 . map ( ( [ repo , refs ] ) => ( {
You can’t perform that action at this time.
0 commit comments