Let’s say I’m a CS professor and want to use Gitlab in my course. I would like to do something like this…
Create a code assignment as a project.
Give students the ability to fork the project into their personal Gitlab accounts.
Students would be instructed to create a branch.
Once they’ve completed their work they would create a "merge request’?
Merge the branch back into the main project and have automated test pipelines that run against the branches.
The problem I see is that the students would all be able to see each other’s merge requests. Course they could just fork each other’s projects as well.
Anyway…just wondering if anyone else is doing anything like this or has any thoughts about it. Maybe there’s a better way to make this work.
GitHub has Education tools and support for education under “GitHub Classroom.”
One of the tools is a script that creates clones of a repo (ex starter code) for each student where only a single student and instructor have access. So students do not see forks of each other’s work. The script requires knowing GitHub usernames first. When you are granted education status you are granted private repos for this.
I have seen scripts that the University of Waterloo (Ontario) appears to have developed themselves in order to automate a similar task on their hosted GitLab.