Skip to content

Commit

Permalink
shorter params
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed May 17, 2021
1 parent bd83a1f commit c5f4dfa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions bin/cml-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ const opts = decamelize(
.usage('Usage: $0 <glob path> ... <glob path>')
.describe('md', 'Output in markdown format [](url).')
.boolean('md')
.default('git-remote', GIT_REMOTE)
.default('git-user-email', GIT_USER_EMAIL)
.default('git-user-name', GIT_USER_NAME)
.default('remote', GIT_REMOTE)
.describe('remote', 'Sets git remote.')
.default('user-email', GIT_USER_EMAIL)
.describe('user-email', 'Sets git user email.')
.default('user-name', GIT_USER_NAME)
.describe('user-name', 'Sets git user name.')
.default('repo')
.describe(
'repo',
Expand Down
6 changes: 3 additions & 3 deletions src/cml.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ class CML {
async pr_create(opts = {}) {
const driver = get_driver(this);
const {
git_remote: remote = GIT_REMOTE,
git_user_email: user_email = GIT_USER_EMAIL,
gir_user_name: user_name = GIT_USER_NAME,
remote = GIT_REMOTE,
user_email = GIT_USER_EMAIL,
user_name = GIT_USER_NAME,
globs = ['dvc.lock', '.gitignore'],
md
} = opts;
Expand Down

1 comment on commit c5f4dfa

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.