Add licenses plugin (#118)

This commit is contained in:
Simon Lecoq
2021-02-11 21:39:40 +01:00
committed by GitHub
parent 1f59169b11
commit 783e2b453b
12 changed files with 730 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
/**Mocked data */
export default function({faker, query, login = faker.internet.userName()}) {
console.debug("metrics/compute/mocks > mocking graphql api result > licenses/repository")
return ({
user:{
repository:{
licenseInfo:{spdxId:"MIT", name:"MIT License", nickname:null, key:"mit"},
url:"https://github.com/lowlighter/metrics",
databaseId:293860197,
},
},
})
}