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
# For multiple commands, upload a script and run it.
170
+
cat>"${TEMPDIR}/commit_push.sh"<<-EOF
171
+
#!/usr/bin/env bash
172
+
set -euo pipefail
173
+
if [[\$(git branch --show-current) != "${WORKSPACE_NAME}" ]]; then
174
+
git checkout -b${WORKSPACE_NAME}
175
+
fi
176
+
177
+
if [[ -z\$(git status --porcelain) ]]; then
178
+
echo "FATAL: No changes to commit"
179
+
exit 1
180
+
fi
181
+
182
+
git add -A
183
+
commit_msg=\$(echo -n 'You are a CLI utility that generates a commit message. Generate a concise git commit message for the currently staged changes. Print ONLY the commit message and nothing else.' |\${HOME}/.local/bin/claude --print)