Conversation
|
Preview deployed to: https://ThunLights.github.io/distopia/storybook/pr-preview-91 |
📝 WalkthroughWalkthroughThe Storybook workflow now runs only for selected pull-request actions and no longer on push events. The preview job also skips push-triggered runs while continuing to skip closed pull-request actions. ChangesStorybook workflow trigger update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/storybook.yml (1)
74-74: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRedundant
pushguard now that the push trigger is removed.With the
pushtrigger dropped fromon, this workflow only fires onpull_request, sogithub.event_name != 'push'is always true and the clause is dead. You can simplify the condition to just excludeclosedactions.♻️ Optional simplification
- if: github.event.action != 'closed' && github.event_name != 'push' + if: github.event.action != 'closed'🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/storybook.yml at line 74, The conditional on the Storybook workflow job still includes a dead `github.event_name != 'push'` guard even though the workflow no longer triggers on push events. Update the `if` expression to only check the `github.event.action` state and remove the redundant push exclusion, keeping the logic in the same workflow job where this condition is defined.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/storybook.yml:
- Line 74: The conditional on the Storybook workflow job still includes a dead
`github.event_name != 'push'` guard even though the workflow no longer triggers
on push events. Update the `if` expression to only check the
`github.event.action` state and remove the redundant push exclusion, keeping the
logic in the same workflow job where this condition is defined.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: b60420c4-3727-4649-94bb-9d9fba597567
📒 Files selected for processing (1)
.github/workflows/storybook.yml
Summary by CodeRabbit