Skip to content

Add DRY_RUN mode to help with script testing

Evan Read requested to merge eread/add-eslint-and-update-project-dependencies into main

Add a DRY_RUN mode and some terminal colors so script can be easily manually tested locally.

Testing

To test this MR:

  1. Check out this branch.
  2. Run bundle install.
  3. Run DRY_RUN=true ruby scripts/tw-milestone-plan.rb and see the result.
  4. To replicate non-dry mode and see errors raised:
    1. Disconnect from the internet and run ruby scripts/tw-milestone-plan.rb. You'll see the first error.
    2. Reconnect to the internet and run ruby scripts/tw-milestone-plan.rb. As long as you don't have an API token with the required name set, you should see the second error.
Edited by Evan Read

Merge request reports