Fork of starter project is failing for students #185782
Replies: 3 comments
-
|
An update, thanks to a student willing to help me debug: If I give the student (an outside collaborator) read only access to the starter project (which was made from the template), and then have them accept the invite to that assignment, it works properly. Most importantly (?) the bot invited him to the repo before repo.create was called. Shouldn't this be unnecessary? I see no where in the documentation that this is required. |
Beta Was this translation helpful? Give feedback.
-
|
Additional info for people reading this: after talking with CoPilot in support, it turns out that if the starter project is internal (which it is, definitely don't want it to be public since some homeworks chain off one another), the students as outside collaborators have no visibility into that project, and the fork fails, EVEN THOUGH THE BOT is forking the code. So you have to add them as read only members of the starter project for the fork to work. Which seems really dumb to me. Yes, I'm submitting a ticket, because now there are 2 invites each assignment (once for the starter project, one for their fork), which is just bad. (And they can't be added to a team, since they are not org members) |
Beta Was this translation helpful? Give feedback.
-
|
Hi @hococoder! 👋 That log sequence ( Here are the most common causes for this behavior: 1. Third-party Application Restrictions (Most Likely)
2. Template Repository Visibility 3. Re-authorize the App
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am running into an issue. I have an internal template project to use with an assignment. The assignment happily reads that template and builds the starter project. Everything looks good at that point.
However, when my students accept the invite, they are getting 2 messages:
"You accepted the assignment, Programming Assignment 2 . We’re configuring your repository now. This may take a few minutes to complete. Refresh this page to see updates."
and then some minutes later:
"You accepted the assignment, Programming Assignment 2 but something went wrong. We have not received any updates for this assignment. You may want to reaccept the assignment."
When I look at the repositories, there are indeed none made for this assignment by the student (it seems to impact all of them).
Looking at the logs, I see that the GitHub-classroom bot is TRYING to make the repo. It does the following steps:
So the repo gets made, but then eventually destroyed. If I try to accept the assignment as the teacher, the one difference I see is that the bot adds me as an admin to the repo after the integration to the classroom, as well as repository_security_configuration.applied before it creates the feedback pull request.
Another note: I used an empty project for my first assignment, and had no problems - repos were made just fine.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions