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

A convenience script for previewing docs changes. #20569

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Feb 17, 2024

No description provided.

@benjyw benjyw added the category:internal CI, fixes for not-yet-released features, etc. label Feb 17, 2024
Comment on lines 14 to 17
if [[ $(git diff --stat) != '' ]]; then
echo "Expected clean git state in the pantsbuild/pantsbuild.org repo"
exit 1
fi
Copy link
Member

Choose a reason for hiding this comment

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

git diff --exit-code..? ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, done.

@benjyw benjyw merged commit 5779896 into pantsbuild:main Feb 17, 2024
24 checks passed
@benjyw benjyw deleted the preview_docs branch February 17, 2024 23:32
echo "Expected clean git state in the pantsbuild/pantsbuild.org repo"
exit 1
fi
git diff --stat --exit-code > /dev/null || (echo "Expected clean git state in the pantsbuild/pantsbuild.org repo" && exit 1)
Copy link
Member

Choose a reason for hiding this comment

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

Ah, and there's --quiet too, when the output is not of interest:

git diff --quiet

:p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants