mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user