Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove quotes around $DRAFT argument #553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Conversation

aeisenberg
Copy link
Contributor

gh will complain if there is an empty "", which is the case if
$DRAFT is unset.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@aeisenberg aeisenberg requested a review from adityasharad June 7, 2021 20:36
@@ -124,4 +124,4 @@ jobs:
--base "$BASE_BRANCH" \
--title "$PR_TITLE" \
--body "$PR_BODY" \
"$DRAFT"
$DRAFT # no quotes around $DRAFT. gh will error out if there is an empty ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Alternatively: ${DRAFT:+"$DRAFT"}

gh will complain if there is an empty `""`, which is the case if
`$DRAFT` is unset.
@aeisenberg aeisenberg force-pushed the aeisenberg/no-quotes branch from 906165e to 74764ac Compare June 7, 2021 20:53
@aeisenberg aeisenberg enabled auto-merge June 7, 2021 20:54
@aeisenberg aeisenberg merged commit ece2add into v1 Jun 7, 2021
@aeisenberg aeisenberg deleted the aeisenberg/no-quotes branch June 7, 2021 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants