Skip to content

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
--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.

3 participants