-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update docs for generate and codeowners (#163)
* Clarify short description * Create more informative flag descriptions * Add Example section * Fix linebreaks * Add long description to generate * Revise short description for generate * Add generating codeowners to long description * Add generate docs * Change saucedctl to codeowners * Change all saucectl to codeowners to reflect changes * Remove POC message and extra indents * Remove duplicated line * Remove command repetition * Add back tick back in * Adds configuration documentation to explain the sauced.yaml file * Remove indentation from examples * Use correct path for default
- Loading branch information
Showing
18 changed files
with
83 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,56 @@ | ||
## pizza generate codeowners | ||
|
||
Generates a CODEOWNERS file for a given repository using a ".sauced.yaml" config | ||
Generate a CODEOWNERS file for a GitHub repository using a "~/.sauced.yaml" config | ||
|
||
### Synopsis | ||
|
||
WARNING: Proof of concept feature. | ||
Generates a CODEOWNERS file for a given git repository. This uses a ~/.sauced.yaml configuration to attribute emails with given entities. | ||
|
||
Generates a CODEOWNERS file for a given git repository. This uses a .sauced.yaml | ||
configuration to attribute emails with given entities. | ||
|
||
The generated file specifies up to 3 owners for EVERY file in the git tree based on the | ||
number of lines touched in that specific file over the specified range of time. | ||
The generated file specifies up to 3 owners for EVERY file in the git tree based on the number of lines touched in that specific file over the specified range of time. | ||
|
||
``` | ||
pizza generate codeowners path/to/repo [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Generate CODEOWNERS file for the current directory | ||
pizza generate codeowners . | ||
# Generate CODEOWNERS file for a specific repository | ||
pizza generate codeowners /path/to/your/repo | ||
# Generate CODEOWNERS file analyzing the last 180 days | ||
pizza generate codeowners . --range 180 | ||
# Generate an OWNERS style file instead of CODEOWNERS | ||
pizza generate codeowners . --owners-style-file | ||
# Specify a custom location for the .sauced.yaml file | ||
pizza generate codeowners . --config /path/to/.sauced.yaml | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for codeowners | ||
--owners-style-file Whether to generate an agnostic OWNERS style file. | ||
-r, --range int The number of days to lookback (default 90) | ||
--owners-style-file Generate an agnostic OWNERS style file instead of CODEOWNERS. | ||
-r, --range int The number of days to analyze commit history (default 90) (default 90) | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --config string The saucectl config (default ".sauced.yaml") | ||
-c, --config string The codeowners config (default ".sauced.yaml") | ||
--disable-telemetry Disable sending telemetry data to OpenSauced | ||
-l, --log-level string The logging level. Options: error, warn, info, debug (default "info") | ||
--tty-disable Disable log stylization. Suitable for CI/CD and automation | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [pizza generate](pizza_generate.md) - Generates something | ||
* [pizza generate](pizza_generate.md) - Generates documentation and insights from your codebase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters