improve travis ci (#6951)

add deprecate build script
This commit is contained in:
Eugenio Romano
2021-04-27 09:26:13 +01:00
committed by GitHub
parent 9c165b2307
commit 672891e21b
3 changed files with 89 additions and 14 deletions

View File

@@ -35,8 +35,6 @@ async function main() {
.option('-title, --title [type]', 'title')
.parse(process.argv);
console.log('process.argv ', program);
const { token, title, head, repo } = program,
prCreator = new PrCreator(ORGANISATION, repo, token);
@@ -49,10 +47,15 @@ async function main() {
main()
.then(prNumber => {
console.log("======= PR Created =========");
console.log(prNumber)
process.exit(0);
})
.catch(error => {
console.error(error);
console.error("======= Impossible create PR =========");
console.error(error.response.status);
console.error(error.response.statusText);
process.exit(1);
});