You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "| 📝 **Code Linting** | ✅ Passed | All formatting and style checks passed |"
99
+
echo ""
100
+
echo "---"
101
+
echo ""
102
+
echo "🚀 **This PR is ready for review and can be safely merged to \`main\` branch!**"
103
+
echo ""
104
+
echo "*Great work! Your code meets all quality standards.* 👏"
105
+
else
106
+
echo "## ❌ Checks Failed"
107
+
echo ""
108
+
echo "**Status:** 🚫 Not ready to merge"
109
+
echo ""
110
+
echo "Please fix the following issues before merging:"
111
+
echo ""
112
+
113
+
if [ "$CI_PASSED" = "false" ]; then
114
+
echo "### 🔨 Continuous Integration Failed"
115
+
echo ""
116
+
echo "**Issue:** The build process failed to complete."
117
+
echo ""
118
+
echo "**How to fix:**"
119
+
echo "1. Run \`npm run build\` locally to identify the issue"
120
+
echo "2. Fix any TypeScript compilation errors"
121
+
echo "3. Ensure all dependencies are properly installed"
122
+
echo "4. Test your changes before pushing"
123
+
echo ""
124
+
echo "---"
125
+
echo ""
126
+
fi
127
+
128
+
if [ "$LINT_PASSED" = "false" ]; then
129
+
echo "### 📝 Code Linting Failed"
130
+
echo ""
131
+
echo "**Issue:** Code formatting or style violations detected."
132
+
echo ""
133
+
if [ -n "$LINT_ERRORS" ]; then
134
+
echo "**Specific problems:**"
135
+
echo ""
136
+
echo -e "$LINT_ERRORS"
137
+
echo ""
138
+
fi
139
+
echo "**How to fix:**"
140
+
echo ""
141
+
echo "| Platform | Command | Description |"
142
+
echo "|----------|---------|-------------|"
143
+
echo "| 🐧 **Unix/macOS/Linux** | \`npm run format\` | Auto-fix all formatting issues |"
144
+
echo "| 🪟 **Windows** | \`npm run format:file <filename>\` | Fix specific files |"
145
+
echo "| 🔍 **Check Only** | \`npm run format:check\` | Check formatting without fixing |"
146
+
echo ""
147
+
echo "**Need help with linting?** Check out the [Linting Guide for Windows Users](https://github.com/sugarlabs/www-v2/pull/12) for detailed instructions."
148
+
echo ""
149
+
echo "---"
150
+
echo ""
151
+
fi
152
+
153
+
echo "### 🛠️ Next Steps"
154
+
echo ""
155
+
echo "1. **Fix the issues** mentioned above"
156
+
echo "2. **Test locally** to ensure everything works"
157
+
echo "3. **Push your fixes** to this branch"
158
+
echo "4. **Wait for re-check** - This bot will automatically run again"
159
+
echo ""
160
+
echo "> 🤖 *This comment will be updated automatically when you push new commits*"
0 commit comments