open-sauced / pizza-cli

A CLI for all things OpenSauced
MIT License
39 stars 11 forks source link

fix: use the local directory and home directory as fallback for .sauced.yaml #158

Closed brandonroberts closed 2 months ago

brandonroberts commented 2 months ago

Description

Uses the local .sauced.yaml as the default, and ~/.sauced.yaml as the fallback location for finding the configuration file

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Steps to QA

  1. Run just build
  2. Go to a repo with no .sauced.yaml file in its root, but with a ~/.sauced.yaml file
  3. Run the codeowners generation command pizza generate codeowners .
  4. Go to a repo with a .sauced.yaml file in its root
  5. Run the codeowners generation command pizza generate codeowners .
  6. Go to a repo with a .sauced.yaml file in its root
  7. Run the codeowners generation command with a custom location pizza generate codeowners . -c ../../.sauced.yaml

Tier (staff will fill in)

[optional] What gif best describes this PR or how it makes you feel?