Closed pixelzoom closed 2 years ago
Hmm, I am not sure. I just ran the script successfully
$ node perennial/js/scripts/protect-branches-for-repo.js geometric-optics-basics
master protection rule set for geometric-optics-basics
main protection rule set for geometric-optics-basics
*[0-9].[0-9]* protection rule set for geometric-optics-basics
One thought, which may impact setting github labels as well - is your developerGithubAccessToken
still usable in buildLocal.json? Perhaps it expired. I would have expected a more direct error for that but maybe I am not handling it well in this script.
Thanks for running the script.
developerGithubAccessToken
does exist in my build-local.json, and I don't recall changing it on GitHub. I'l leave this issue open to investigate.
This was indeed a problem with my GitHub PAT. After putting a valid PAT in my build-local.json, the script succeeds.
Closing.
I'm trying to follow the instructions in https://github.com/phetsims/phet-info/blob/master/checklists/new_repo_checklist.md for creating a new sim repo. The repo is geometric-optics-basics. I'm having problems with this step:
Following the instructions at the top of protect-branches-for-repo.js, I'm getting this failure: