Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
fix: fix passing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
DaRaFF committed Nov 16, 2018
1 parent a3ad6d2 commit 798736d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env node

const argv = require('yargs')
.usage('Usage: $0 --token [string] --o [string]')
.demandOption(['token', 'owner', 'repo', 'base-branch'])
.demandOption(['token', 'owner', 'repo'])
.argv
const run = require('./index')
const {token, owner, repo, baseBranch} = argv
const {token, owner, repo} = argv

run({token, owner, repo, baseBranch})
run({token, owner, repo})
.then((pullRequest) => {
console.log(`The PR for the release-management bump has been opened at
${pullRequest.data.html_url}`)
Expand Down

0 comments on commit 798736d

Please sign in to comment.