version: use the current branch when determining the automatic version