Using core.info instead of console.log and simplifying the arguments for API calls a bit.
This will be added to treefmt in a different commit / PR.
This just moves the code over to ci/github-script to make it easy to test and iterate on locally. The name `prepare` is chosen, because the script will be extended with the other steps from "PR / prepare" next.