Logerfo / gitflow-action

Automatically creates and merges pull requests from master to dev and from release to master.
MIT License
23 stars 15 forks source link

RFE: Provide a clear error message if the config references a branch that does not exist #34

Open rpbarlow-credible opened 4 years ago

rpbarlow-credible commented 4 years ago

Greetings!

In #33, I encountered a strange error message when I used a branch name that didn't exist in my repo in my gitflow-action configuration:

##[error]Validation Failed: {"resource":"PullRequest","field":"base","code":"invalid"}

I suggest detecting this condition and reporting a clearer error message. Something similar to this would be helpful:

Error: Setting 'dev' references a branch that does not exist: devel
Logerfo commented 4 years ago

@rpbarlow thank you.