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: skip interactive steps in generate codeowners with --tty-disable flag #159

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

nickytonline
Copy link
Member

@nickytonline nickytonline commented Sep 6, 2024

Description

Now if the --tty-disable flag is passed to generate a codeowners, the interactive steps are skipped.

There are currently no tests for codeowners.go. I'm going to look at adding some. (punting for now as mentioned below)

Related Tickets & Documents

Closes #154

Mobile & Desktop Screenshots/Recordings

CleanShot 2024-09-06 at 17 23 11

Steps to QA

  1. Run just build
  2. Run ./build/pizza generate codeowners --tty-disable
  3. Notice the command runs and skips the interactive steps.
  4. Run ./build/pizza generate codeowners
  5. Notice the command runs and does not skip the interactive steps.

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 6, 2024 21:24
@nickytonline nickytonline force-pushed the nickytonline/tty-disable branch from 78306af to ce31d3f Compare September 6, 2024 21:33
Copy link
Member

@jpmcb jpmcb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 👍🏼

There are currently no tests for codeowners.go. I'm going to look at adding some.

Yeah, codeowners.go is abit of a monolith with its run function. It's a big workflow so happy to punt on some tests there

@nickytonline nickytonline merged commit 49f1fd3 into beta Sep 6, 2024
15 checks passed
open-sauced bot pushed a commit that referenced this pull request Sep 6, 2024
## [1.3.1-beta.1](v1.3.0...v1.3.1-beta.1) (2024-09-06)

### 🐛 Bug Fixes

* skip interactive steps in generate codeowners with --tty-disable flag ([#159](#159)) ([49f1fd3](49f1fd3))
@jpmcb jpmcb deleted the nickytonline/tty-disable branch September 6, 2024 23:05
open-sauced bot pushed a commit that referenced this pull request Sep 11, 2024
## [1.4.0](v1.3.0...v1.4.0) (2024-09-11)

### 🍕 Features

* Posthog events bootstrapping ([#160](#160)) ([847426b](847426b))

### 🐛 Bug Fixes

* docs generation runs outside of build matrix now ([#165](#165)) ([1e42988](1e42988))
* fixed docs generation in release workflow ([#162](#162)) ([5341e16](5341e16))
* now --tty-disable is set so the action can complete instead of hanging ([#164](#164)) ([a970a73](a970a73))
* skip interactive steps in generate codeowners with --tty-disable flag ([#159](#159)) ([49f1fd3](49f1fd3))
* use the local directory and home directory as fallback for .sauced.yaml ([#158](#158)) ([af2f361](af2f361))
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: pizza generate codeowners needs to support the --tty-disable flag
3 participants