fotingo
fotingo copied to clipboard
Fotingo release -n parameter is not working
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
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.
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