feat: generate awesome list from stars

This commit is contained in:
Simone Corsi
2021-01-15 10:43:56 +01:00
parent e88401859a
commit 0f6fa769c9
23 changed files with 34337 additions and 0 deletions

11
src/api.ts Normal file
View File

@@ -0,0 +1,11 @@
import got from 'got';
import core from '@actions/core';
const GITHUB_TOKEN = core.getInput('githubToken', { required: true });
export default got.extend({
headers: {
Authorization: `token ${GITHUB_TOKEN}`,
},
responseType: 'json',
});