fix(mr): Fixed EOF error when todo is called multiple times
Description
When the glab mr todo
command is called a second time after the MR has been already added to the todos, we get an EOF error i.e. the API returns a 304 (Not Modified). This change ensures that a more descriptive error is thrown "To-do already exists".
Related Issues
Resolves #1212 (closed)
How has this been tested?
This can be tested by running the command glab mr todo
multiple times for a MR.
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms)
Edited by Shekhar Patnaik