fotingo icon indicating copy to clipboard operation
fotingo copied to clipboard

Fotingo release -n parameter is not working

Open llosimura opened this issue 6 years ago • 2 comments

According to the documentation:

❯ fotingo release -h

  Usage: fotingo-release [options]

  Options:

    -n, --no-branch-issue  Do not pick issue from the branch name
    -i, --issue [issue]    Specify more issues to include in the release (default: )
    -h, --help             output usage information

it seems that -n and --no-branch-issue are equivalent. However, if I execute

❯ fotingo release -n -issue_1 release_1
[1/5] 🚀  Initializing services...
error 💥  You haven't made any changes to this branch

Using --no-branch-issue seem to be working correctly

llosimura avatar May 23 '18 10:05 llosimura

This is interesting, as both options are an alias defined in commander. My guess is that something may have changed in the repo or the origin between both executions.

tagoro9 avatar May 23 '18 12:05 tagoro9

Today I got this error again and was able to reproduce it given the following scenario.

  • Once your changes are merged checkout to master
  • In master try to do fotingo release -n -issue_1 release_1. It fails
  • Create a new branch and create a dummy commit.
  • Rerun fotingo release -n -issue_1 release_1. It works

llosimura avatar Jun 04 '19 11:06 llosimura