Files
rfc.vac.dev/docusaurus-utils/scrapper/github.mjs
Filip Pajic 1788712c98 chore: Build streamlined (#4)
* chore: create a command for unified build and scrape flow

* chore: cleanup repo from temp folders

* feat: add new .md fetching mode

* feat: fetching through git added

* ci: add Scrape stage to the Jenkinsfile

* feat: add env variables to the Jenkinsfile
2024-06-25 07:54:16 +02:00

13 lines
290 B
JavaScript

import { GITHUB_TOKEN } from './config.mjs'
import axios from "axios";
export async function fetchFromGitHub(url) {
const response = await axios.get(url, {
headers: {
'User-Agent': 'Node.js',
'Authorization': `token ${GITHUB_TOKEN}`
}
});
return response.data;
}