mirror of
https://github.com/vacp2p/rfc.vac.dev.git
synced 2026-01-06 22:53:50 -05:00
* 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
13 lines
290 B
JavaScript
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;
|
|
} |