Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: now fallback .sauced.yaml contents get read #135

Merged
merged 4 commits into from
Sep 5, 2024

Conversation

nickytonline
Copy link
Member

@nickytonline nickytonline commented Sep 4, 2024

Description

Now, if the repository root .sauced.yaml is the config to use, it's contents get read and loaded. Previously, this was not the case which resulted in an empty attribution list.

Related Tickets & Documents

Closes #134

Mobile & Desktop Screenshots/Recordings

Steps to QA

Note, ensure you do not have a ~/.sauced.yaml to test this.

  1. Run just build
  2. Run ./build/pizza generate codeowners ./
  3. This will run on the pizza-cli project and it will update attributions for the or not change the CODEOWNERS file.

The tests cover this as well. Just run just test

Tier (staff will fill in)

  • Tier 1
  • Tier 2
  • Tier 3
  • Tier 4

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

@nickytonline nickytonline requested a review from a team September 4, 2024 14:15
@nickytonline nickytonline force-pushed the nickytonline/config-load-bug branch from a80a91a to a5324ce Compare September 4, 2024 14:16
@nickytonline nickytonline changed the title fix: now the repo root .sauced.yaml gets it's contents read fix: now the repository root .sauced.yaml gets it's contents read Sep 4, 2024
@nickytonline nickytonline force-pushed the nickytonline/config-load-bug branch 2 times, most recently from a04e8ca to 70ca56e Compare September 4, 2024 17:24
@nickytonline nickytonline marked this pull request as ready for review September 4, 2024 17:24
@nickytonline nickytonline force-pushed the nickytonline/config-load-bug branch from 70ca56e to 88da5df Compare September 4, 2024 17:34
@nickytonline nickytonline changed the title fix: now the repository root .sauced.yaml gets it's contents read fix: now fallback .sauced.yaml contents get read Sep 4, 2024
pkg/config/config.go Outdated Show resolved Hide resolved
pkg/config/config_test.go Outdated Show resolved Hide resolved
@nickytonline nickytonline force-pushed the nickytonline/config-load-bug branch from d154027 to 48d9e4b Compare September 4, 2024 21:59
@nickytonline nickytonline requested a review from a team September 4, 2024 21:59
pkg/config/config_test.go Outdated Show resolved Hide resolved
@nickytonline nickytonline force-pushed the nickytonline/config-load-bug branch from 48d9e4b to 1d4506b Compare September 4, 2024 22:06
@nickytonline nickytonline merged commit fd658e5 into beta Sep 5, 2024
9 checks passed
open-sauced bot pushed a commit that referenced this pull request Sep 5, 2024
## [1.3.0-beta.4](v1.3.0-beta.3...v1.3.0-beta.4) (2024-09-05)

### 🐛 Bug Fixes

* now fallback .sauced.yaml contents get read ([#135](#135)) ([fd658e5](fd658e5))
open-sauced bot pushed a commit that referenced this pull request Sep 6, 2024
## [1.3.0](v1.2.1...v1.3.0) (2024-09-06)

### 🍕 Features

* Create a contributor list after generating codeowners ([#141](#141)) ([72c5d58](72c5d58))
* now the documentation for the pizza-cli can be generated via pizza docs ([#143](#143)) ([3f5d27e](3f5d27e))
* Refactors API client into hand rolled sdk in api/ directory ([#111](#111)) ([e16e889](e16e889))
* support fallback attributions when generating codeowners file ([#145](#145)) ([35af4da](35af4da))
* update `CODEOWNERS` copy with command ([#130](#130)) ([a477959](a477959))

### 🐛 Bug Fixes

* Corrects invalid gosec lint error ([#151](#151)) ([f76527f](f76527f))
* Exhume Posthog functionality ([#147](#147)) ([de091ca](de091ca))
* now fallback .sauced.yaml contents get read ([#135](#135)) ([fd658e5](fd658e5))
* NPM cache now looks at package-lock file ([#136](#136)) ([cd4b8da](cd4b8da))
@jpmcb jpmcb deleted the nickytonline/config-load-bug branch September 6, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: users removed from files when running pizza generate codeowners ./
3 participants