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 41d3541c4b - Show all commits

View file

@ -13,7 +13,9 @@ async function uploadFile(releaseID, localPath, remoteName = undefined) {
const stream = createReadStream(localPath);
return axios.post(
`${API}/repos/${REPO}/releases/${releaseID}/assets`,
stream,
{
attachment: stream,
},
{
headers: {
Authorization: `token ${TOKEN}`,
@ -57,6 +59,8 @@ async function main() {
} catch {
console.error(`Failed to delete draft release`);
};
process.exit(1);
};
};