Closed kreynen closed 5 years ago
Only add an element to the array if GH is in the URL: https://github.com/CuBoulder/lil_shrugger/blob/2.x/src/services/github.ts#L83
Add a help note of "Code repository to add not in the CU GitHub account?" with a link to the wiki where a sample payload is given for a code asset telling the user what parts to modify, replace, and send via something like Postman.
I think this might have come from editing a code asset? I can't reproduce what is going on here, but the error is pretty trivial. The code that grabs the repos gets all it's information from GitHub so all the git URLs are going to come from that. If it comes up again, more info on how it happened would help to resolve the issue.
It most likely comes from https://github.com/CuBoulder/lil_shrugger/blob/2.x/src/views/Code.vue#L196 when looking up the latest commit for a repo not on GH.
I don't have time to fix now so I'm closing.
https://api.github.com/repos/CuBoulder/geocoder/commits doesn't exist.
Atlas was designed to allow use to use any git repo. Shrugger should only try to help with the api lookups if the repo's url include github.com/CuBoulder.