2 Commits

Author SHA1 Message Date
Mads Hartmann
4ab9e3a48a Dont hash if the branch is 20 chars or less 2022-03-11 13:50:18 +05:30
Mads Hartmann
afa2bd1cb8 Allow for branch name lengths of 45
This relaxes the branch name restriction from 20 characters to 45. This is achieved by constructing the preview name based on the first 10 characters of the branch name and then the first 10 characters of the hashed value of the branch name.

All places that (to my knowledge) rely on the preview name has been updated.

Fixes https://github.com/gitpod-io/ops/issues/1252
2022-03-11 13:50:18 +05:30