syntaqx / git-hooks

A collection of git hooks for use with pre-commit
MIT License
34 stars 17 forks source link

Feature: circleci-config-validate Allow for optional --org-id #16

Open tomislacker opened 3 months ago

tomislacker commented 3 months ago

Background

If utilizing hooks/circleci-config-validate.sh within a CircleCI Organization that perhaps has private Orbs, it's required to pass the --org-id string option to the circleci config validate sub-command.

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                                                                              ┃
┃  circleci config validate                                                    ┃
┃                                                                              ┃
┃                                                                              ┃
┃       Check that the config file is well formed.                             ┃
┃                                                                              ┃
┃  Aliases:                                                                    ┃
┃           validate, check                                                    ┃
┃                                                                              ┃
┃  Usage:                                                                      ┃
┃         circleci config validate <path> [flags]                              ┃
┃                                                                              ┃
┃  Local Flags:                                                                ┃
┃                                                                              ┃
┃   -h, --help                       help for validate                         ┃
┃       --ignore-deprecated-images   ignores the deprecated images error       ┃
┃       --org-id string              organization id used when a config depend ┃
┃ s                                                                            ┃
┃ on private orbs belonging to that org                                        ┃
┃   -o, --org-slug string            organization slug (for example:           ┃
┃ github/example-org), used when a config depends on private orbs belonging to ┃
┃ that org                                                                     ┃
┃   -v, --verbose                    Enable verbose output                     ┃
┃                                                                              ┃
┃  Global Flags:                                                               ┃
┃                                                                              ┃
┃       --host string         URL to your CircleCI host, also CIRCLECI_CLI_HOS ┃
┃ T                                                                            ┃
┃ (default "https://circleci.com")                                             ┃
┃       --skip-update-check   Skip the check for updates check run before ever ┃
┃ y                                                                            ┃
┃ command.                                                                     ┃
┃       --token string        your token for using CircleCI, also              ┃
┃ CIRCLECI_CLI_TOKEN                                                           ┃
┃                                                                              ┃
┃                                                                              ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Feature Request

syntaqx commented 1 week ago

Feel free to send a pull request!