Skip to content

Retrieve all the forks of a gitlab project

Notifications You must be signed in to change notification settings

elfuchs/get-gitlab-forks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Trigger: Push action

Get Gitlab Forks

Do you want to retrieve all the forks of your gitlab project you have access to? If so, this script could help you.

To learn how to use it:

./get-gitlab-forks.sh -h

Dependencies

You will need:

  • bash >= 5
  • jq
  • curl

Typical usage

If you are assigning programming projects to students, I found the following process sufficiently simple and efficient:

  1. Create a public gitlab project containing the base source files, specifications and tests.
  2. Ask students to fork the gitlab project with a private visibility and to make you a member of their gitlab project.
  3. Use this script to retrieve all the forks.

This process enjoys the following properties:

  • It is easy for students to get updates from the base project.
  • You do not have to collect students projects manually, everything is automated.
  • The script alerts you if a student forgot to make its project private.
  • You can post the list of forked projects to the course mailing list for students to know if they followed the instructions correctly.

About

Retrieve all the forks of a gitlab project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%