Skip to content

Commit

Permalink
fix: skip interactive steps in generate codeowners with --tty-disable…
Browse files Browse the repository at this point in the history
… flag for default pizza-args (#8)
  • Loading branch information
nickytonline authored Sep 9, 2024
1 parent 23ba240 commit e29d132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ jobs:
We suggest you add this to a workflow file in the `.github/workflows` directory of your repository and call it something like `pizza-action.yml`.

Depending on the pizza CLI command you run, different things will update. For example, if you run `pizza generate codeowners ./`, it will update the CODEOWNERS file in the root of your repository.
Depending on the pizza CLI command you run, different things will update. For example, if you run `pizza generate codeowners ./ --tty-disable`, it will update the CODEOWNERS file in the root of your repository.

The pizza CLI's "generate codeowners ./" command requires a full repository history to accurately determine code ownership over time. Fetch-depth is set to 0 in this action to ensure all historical commits are available, allowing the command to analyze the entire project timeline and produce a comprehensive CODEOWNERS file.
The pizza CLI's "generate codeowners ./ --tty-disable" command requires a full repository history to accurately determine code ownership over time. Fetch-depth is set to 0 in this action to ensure all historical commits are available, allowing the command to analyze the entire project timeline and produce a comprehensive CODEOWNERS file.

## Inputs

### `pizza-args`

Arguments to pass to the pizza CLI. Default is `generate codeowners ./`.
Arguments to pass to the pizza CLI. Default is `generate codeowners ./ --tty-disable`.

### `commit-and-pr`

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branding:
inputs:
pizza-args:
description: "OpenSauced Pizza CLI command to run"
default: "generate codeowners ./"
default: "generate codeowners ./ --tty-disable"
required: true
commit-and-pr:
description: "Commit and push changes"
Expand Down

0 comments on commit e29d132

Please sign in to comment.