cut_text utility, and the rest of the GitHub resolver implementation