jedieaston / Add-ARPEntries

A script to generate AppsAndFeaturesEntries for winget!
MIT License
3 stars 2 forks source link

Add validation and cleanup for Recurse.ps1 #8

Closed russellbanks closed 2 years ago

russellbanks commented 2 years ago

This PR adds validation for Recurse.ps1:

  1. Check that docker is running (rather than failing when Add-ARPEntries checks and then creating random branches and committing nothing).
  2. Check Git is installed.
  3. Check that GItHub CLI is installed.
  4. If Git is installed, check that it is a patched version and prompt the user to update with winget if they are outdated (code extract taken from YamlCreate.ps1).

Alongside this, it improves the title and branch name to the standard of YamlCreate, specifying the version. The branch name is generated in an almost identical fashion to YamlCreate, rather than generating a random GUID:

firefox_lfsA4dX2el