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

Docs and output tinkering for commit check #1191

Merged
merged 2 commits into from
Dec 7, 2021

Conversation

chadwhitacre
Copy link
Member

Quick follow-up to #1186, primarily to add the grouping we have in the other subscripts, and to give feedback when skipped.

@@ -4,14 +4,20 @@ show_help() {
cat <<EOF
Usage: $0 [options]

Install Sentry with `docker compose`.
Install Sentry with \`docker compose\`.
Copy link
Member Author

Choose a reason for hiding this comment

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

Oops. Backticks spawn a subshell here, need to escape them. Regression in #1179.

--skip-commit-check Skip the check for the latest commit when on the master
branch of a \`self-hosted\` Git working copy.
--skip-user-prompt Skip the initial user creation prompt (ideal for non-
interactive installs).
Copy link
Member Author

Choose a reason for hiding this comment

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

Opportunistic reformat for 80-char lines, sort alphabetically.

@@ -22,7 +28,8 @@ SKIP_COMMIT_CHECK="${SKIP_COMMIT_CHECK:-}"
while (( $# )); do
case "$1" in
-h | --help) show_help; exit;;
--no-user-prompt) SKIP_USER_PROMPT=1;;
--no-user-prompt) SKIP_USER_PROMPT=1;; # deprecated
--skip-user-prompt) SKIP_USER_PROMPT=1;;
Copy link
Member Author

Choose a reason for hiding this comment

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

We shouldn't have --no-* for one and --skip-* for the other. Let's standardize on --skip.

@chadwhitacre chadwhitacre changed the title Tweak commit check output Docs and output tinkering for commit check Dec 6, 2021
Copy link
Collaborator

@aminvakil aminvakil left a comment

Choose a reason for hiding this comment

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

Thanks for improving it!

@chadwhitacre chadwhitacre merged commit 596be66 into master Dec 7, 2021
@chadwhitacre chadwhitacre deleted the cwlw/tweak-commit-check branch December 7, 2021 16:08
@chadwhitacre chadwhitacre mentioned this pull request Dec 15, 2021
3 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants