Files
workspace/finish-task.sh
Claude Agent 193b94c94f Initial commit - workspace setup scripts
Add Claude Agent workspace configuration and utility scripts:
- CLAUDE.md: Agent documentation and instructions
- SETUP-COMPLETE.md: Setup completion notes
- start-agent.sh: Script to start tmux session
- new-task.sh: Script for new task workflow
- finish-task.sh: Script to finish tasks
- work.sh: Main work script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 19:11:44 +00:00

32 lines
705 B
Bash
Executable File

#!/bin/bash
# Script pentru a finaliza un task (commit + push)
PROJECT_DIR="/workspace/romfastsql"
cd "$PROJECT_DIR" || exit 1
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ]; then
echo "❌ Ești pe main! Nu face commit direct pe main."
exit 1
fi
echo "📋 Status curent:"
git status --short
echo ""
read -p "Mesaj commit: " COMMIT_MSG
if [ -z "$COMMIT_MSG" ]; then
echo "❌ Trebuie să dai un mesaj pentru commit"
exit 1
fi
git add .
git commit -m "$COMMIT_MSG"
git push -u origin "$BRANCH"
echo ""
echo "✅ Done! Branch-ul $BRANCH a fost push-uit."
echo "🔗 Creează Pull Request în Gitea: https://gitea.romfast.ro/romfast/romfastsql/compare/main...$BRANCH"