1
1
import spdxSatisfies from 'spdx-satisfies'
2
- import { Change , Changes } from './schemas'
3
- import { isSPDXValid , octokitClient } from './utils'
4
- import { PackageURL } from 'packageurl-js'
2
+ import { Change , Changes } from './schemas'
3
+ import { isSPDXValid , octokitClient } from './utils'
4
+ import { PackageURL } from 'packageurl-js'
5
5
6
6
/**
7
7
* Loops through a list of changes, filtering and returning the
@@ -29,7 +29,7 @@ export async function getInvalidLicenseChanges(
29
29
licenseExclusions ?: string [ ]
30
30
}
31
31
) : Promise < InvalidLicenseChanges > {
32
- const { allow, deny } = licenses
32
+ const { allow, deny} = licenses
33
33
const licenseExclusions = licenses . licenseExclusions ?. map (
34
34
( pkgUrl : string ) => {
35
35
return PackageURL . fromString ( encodeURI ( pkgUrl ) )
@@ -127,7 +127,7 @@ const fetchGHLicense = async (
127
127
}
128
128
}
129
129
130
- const parseGitHubURL = ( url : string ) : { owner : string ; repo : string } | null => {
130
+ const parseGitHubURL = ( url : string ) : { owner : string ; repo : string } | null => {
131
131
try {
132
132
const parsed = new URL ( url )
133
133
if ( parsed . host !== 'github.com' ) {
@@ -137,7 +137,7 @@ const parseGitHubURL = (url: string): { owner: string; repo: string } | null =>
137
137
if ( components . length < 3 ) {
138
138
return null
139
139
}
140
- return { owner : components [ 1 ] , repo : components [ 2 ] }
140
+ return { owner : components [ 1 ] , repo : components [ 2 ] }
141
141
} catch ( _ ) {
142
142
return null
143
143
}
0 commit comments