Data Request API helper #10

Merged
Oliver merged 94 commits from feat/data-requests into main 2025-11-22 02:51:15 +00:00
Showing only changes of commit caf6dfa4a3 - Show all commits

View file

@ -7,10 +7,14 @@ const {
FORGEJO_TOKEN: TOKEN, FORGEJO_TOKEN: TOKEN,
} = process.env; } = process.env;
console.log(process.env);
console.log({ TAG_NAME, API_URL, REPO, });
async function main() { async function main() {
if (!TAG_NAME) {
console.log(`Tag name must not be blank`);
process.exit(1);
};
const requestURL = `${API_URL}/repos/${REPO}/tags/${TAG_NAME}`; const requestURL = `${API_URL}/repos/${REPO}/tags/${TAG_NAME}`;
const response = await axios.get( const response = await axios.get(