fs / rails-base-graphql-api

Base Rails application for GraphQL API
27 stars 7 forks source link

Sanitize branch name to avoid docker error #203

Closed EvgeniyEsaulkov closed 2 years ago

EvgeniyEsaulkov commented 2 years ago

Summary

Dependabot creates branches with name like this - dependabot/bundler/<gem_name_and_version>. Docker uses "/" character to separate docker repo and image name. So it raises an error when we have mulitiple chars in image name.

This PR sanitizes branch name by replacing "/" symbol by "_". Sanitized name doesn't change branch name, it is used for docker tag only.

References