Skip to content

Commit 32fb1b9

Browse files
committed
🤖 Fix markdown and shell script formatting
Generated with `cmux`
1 parent 0d798a6 commit 32fb1b9

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

STORYBOOK.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ The output will be in the `storybook-static` directory.
2727
Stories are located next to their components with the `.stories.tsx` extension.
2828

2929
Example structure:
30+
3031
```
3132
src/components/Messages/
3233
├── AssistantMessage.tsx
@@ -71,6 +72,7 @@ export const Default: Story = {
7172
## Theme
7273

7374
Storybook is configured with a dark theme to match the application:
75+
7476
- Dark UI chrome (sidebar, toolbar, etc.)
7577
- Dark documentation pages
7678
- Dark canvas background (`hsl(0 0% 12%)`) matching the app's `--color-background`
@@ -96,6 +98,7 @@ You'll need a `CHROMATIC_PROJECT_TOKEN` environment variable set.
9698
### CI Integration
9799

98100
Chromatic runs automatically in CI via `.github/workflows/chromatic.yml`:
101+
99102
- Runs on all PRs and pushes to main
100103
- Visual diffs are shown inline in PR comments
101104
- Won't fail the build on visual changes (for review)

scripts/wait_pr_checks.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ echo ""
1616
while true; do
1717
# Get PR status
1818
STATUS=$(gh pr view "$PR_NUMBER" --json mergeable,mergeStateStatus 2>/dev/null || echo "error")
19-
19+
2020
if [ "$STATUS" = "error" ]; then
2121
echo "❌ Failed to get PR status. Does PR #$PR_NUMBER exist?"
2222
exit 1
2323
fi
24-
24+
2525
MERGEABLE=$(echo "$STATUS" | jq -r '.mergeable')
2626
MERGE_STATE=$(echo "$STATUS" | jq -r '.mergeStateStatus')
27-
27+
2828
# Check for bad merge status
2929
if [ "$MERGEABLE" = "CONFLICTING" ]; then
3030
echo "❌ PR has merge conflicts!"
3131
exit 1
3232
fi
33-
33+
3434
if [ "$MERGE_STATE" = "DIRTY" ]; then
3535
echo "❌ PR has merge conflicts!"
3636
exit 1
3737
fi
38-
38+
3939
if [ "$MERGE_STATE" = "BEHIND" ]; then
4040
echo "❌ PR is behind base branch. Rebase needed."
4141
echo ""
@@ -45,18 +45,18 @@ while true; do
4545
echo " git push --force-with-lease"
4646
exit 1
4747
fi
48-
48+
4949
# Get check status
5050
CHECKS=$(gh pr checks "$PR_NUMBER" 2>&1 || echo "pending")
51-
51+
5252
# Check for failures
5353
if echo "$CHECKS" | grep -q "fail"; then
5454
echo "❌ Some checks failed:"
5555
echo ""
5656
gh pr checks "$PR_NUMBER"
5757
exit 1
5858
fi
59-
59+
6060
# Check if all checks passed and merge state is clean
6161
if echo "$CHECKS" | grep -q "pass" && ! echo "$CHECKS" | grep -qE "pending|fail"; then
6262
if [ "$MERGE_STATE" = "CLEAN" ]; then
@@ -71,6 +71,6 @@ while true; do
7171
# Show current status
7272
echo -ne "\r⏳ Checks in progress... (${MERGE_STATE}) "
7373
fi
74-
74+
7575
sleep 5
7676
done

0 commit comments

Comments
 (0)