2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00
Files
axios/bin/actions/notify_published.js
T

23 lines
378 B
JavaScript

import minimist from "minimist";
import RepoBot from '../RepoBot.js';
const argv = minimist(process.argv.slice(2));
console.log(argv);
const tag = argv.tag;
if (!tag) {
throw new Error('tag must be specified');
}
const bot = new RepoBot();
(async() => {
try {
await bot.notifyPublishedPRs(tag);
} catch (err) {
console.warn('Error:', err.message);
}
})();