Skip to content

Commit f571b3a

Browse files
committed
🤖 Fix markdown and shell script formatting
Generated with `cmux`
1 parent 1e65578 commit f571b3a

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
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: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,27 @@ echo ""
1515

1616
while true; do
1717
# Get PR status
18-
STATUS=$(gh pr view "$PR_NUMBER" --json mergeable,mergeStateStatus,state 2>/dev/null || echo "error")
19-
18+
STATUS=$(gh pr view "$PR_NUMBER" --json mergeable,mergeStateStatus 2>/dev/null || echo "error")
19+
2020
if [ "$STATUS" = "error" ]; then
2121
echo "❌ Failed to get PR status. Does PR #$PR_NUMBER exist?"
2222
exit 1
2323
fi
24-
25-
PR_STATE=$(echo "$STATUS" | jq -r '.state')
26-
27-
# Check if PR is already merged
28-
if [ "$PR_STATE" = "MERGED" ]; then
29-
echo "✅ PR #$PR_NUMBER has been merged!"
30-
exit 0
31-
fi
32-
24+
3325
MERGEABLE=$(echo "$STATUS" | jq -r '.mergeable')
3426
MERGE_STATE=$(echo "$STATUS" | jq -r '.mergeStateStatus')
35-
27+
3628
# Check for bad merge status
3729
if [ "$MERGEABLE" = "CONFLICTING" ]; then
3830
echo "❌ PR has merge conflicts!"
3931
exit 1
4032
fi
41-
33+
4234
if [ "$MERGE_STATE" = "DIRTY" ]; then
4335
echo "❌ PR has merge conflicts!"
4436
exit 1
4537
fi
46-
38+
4739
if [ "$MERGE_STATE" = "BEHIND" ]; then
4840
echo "❌ PR is behind base branch. Rebase needed."
4941
echo ""
@@ -53,18 +45,18 @@ while true; do
5345
echo " git push --force-with-lease"
5446
exit 1
5547
fi
56-
48+
5749
# Get check status
5850
CHECKS=$(gh pr checks "$PR_NUMBER" 2>&1 || echo "pending")
59-
51+
6052
# Check for failures
6153
if echo "$CHECKS" | grep -q "fail"; then
6254
echo "❌ Some checks failed:"
6355
echo ""
6456
gh pr checks "$PR_NUMBER"
6557
exit 1
6658
fi
67-
59+
6860
# Check if all checks passed and merge state is clean
6961
if echo "$CHECKS" | grep -q "pass" && ! echo "$CHECKS" | grep -qE "pending|fail"; then
7062
if [ "$MERGE_STATE" = "CLEAN" ]; then
@@ -79,6 +71,6 @@ while true; do
7971
# Show current status
8072
echo -ne "\r⏳ Checks in progress... (${MERGE_STATE}) "
8173
fi
82-
74+
8375
sleep 5
8476
done

0 commit comments

Comments
 (0)