Skip to content

Rework scripts/clone_projects.go

Ash McKenzie requested to merge ashmckenzie/2-build-site into main

What does this MR do and why?

This MR takes the fantastic work at Add script to fetch Docs content projects (!4 - merged) and enhances with the following:

  • Adds a .gitlab-ci.yml to run tests automatically
  • Encapsulates Product logic as methods, attached to the Product struct
  • Uses runGitCommand() for all git related commands.
  • Reduces data leaks in tests
  • Updates go.mod to support being tested by multiple Go versions
Edited by Ash McKenzie

Merge request reports