A prison sentence has been handed to a 20-year-old man after a machete robbery and burglaries in the borough.