function get_branch(version) {
	return version.replace('-SNAPSHOT', '').split('.').slice(0, 2).join('.');
}
Returns the branch of a given version. This helps to offer upgrades
for point releases (aka within the branch).

Logic:
SNAPSHOT -> SNAPSHOT
21.02-SNAPSHOT -> 21.02
21.02.0-rc1 -> 21.02
19.07.8 -> 19.07

@param {string} version
Input version from which to determine the branch
@returns {string}
The determined branch