Skip to content

Conversation

@rneatherway
Copy link
Contributor

@rneatherway rneatherway commented Jun 26, 2020

Merge / deployment checklist

  • Run test builds as necessary. Can be on this repository or elsewhere as needed in order to test the change - please include links to tests in other repos!
    • CodeQL using init/analyze actions
    • 3rd party tool using upload action
  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.

Copy link
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

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

One minor comment but LGTM regardless.

I've done a very quick audit of the places we call getRequiredEnvParam and all of them should be fine or benefit from requiring the value to be non-empty.

src/util.test.ts Outdated
});

test('getRef() throws on the empty string', t => {
for (const input of [""]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the use of a loop to make it easier to add new cases? In that case the test name may be a bit too specific. Not a big issue though if you want to keep it this way

@rneatherway rneatherway merged commit 504c8cf into main Jun 26, 2020
@rneatherway rneatherway deleted the non-empty-env-vars branch June 26, 2020 14:43
@github-actions github-actions bot mentioned this pull request Jun 29, 2020
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