feat: generate awesome list from stars
This commit is contained in:
11
src/api.ts
Normal file
11
src/api.ts
Normal 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',
|
||||
});
|
Reference in New Issue
Block a user