-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete_branches.sh
More file actions
executable file
·77 lines (69 loc) · 3.02 KB
/
delete_branches.sh
File metadata and controls
executable file
·77 lines (69 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
# Script to delete branches from the remote repository
#
# ⚠️ WARNING: These branches contain working functionality!
#
# These branches were associated with PRs that were closed without merging:
# - PR #36: jules-transparency-report-logic-11997309168661708357
# - Implements transparency report generation (JSON/Markdown)
# - Adds Knowledge Graph integration for reasoning traces
# - 519 lines of working, tested code
#
# - PR #31: jules-uncertainty-mitigation-strategies-10837117013490994765
# - Implements 4 uncertainty mitigation strategies
# - Integrates with CollaborationManager and TransparencyManager
# - 373 lines of working, tested code
#
# ⚠️ IMPORTANT: Review ANSWER.md and BRANCH_DELETION_REPORT.md first!
# These branches contain ~900 lines of complete, tested functionality.
# Only delete if you've confirmed this functionality is not needed.
set -e # Exit on error
echo "========================================"
echo "Branch Deletion Script"
echo "========================================"
echo ""
echo "⚠️ WARNING: These branches contain working functionality!"
echo ""
echo "The following branches will be deleted:"
echo " 1. jules-transparency-report-logic-11997309168661708357"
echo " - Transparency report generation (JSON/Markdown formats)"
echo " - Knowledge Graph integration"
echo " - 519 lines of code with tests"
echo ""
echo " 2. jules-uncertainty-mitigation-strategies-10837117013490994765"
echo " - 4 uncertainty mitigation strategies"
echo " - CollaborationManager integration"
echo " - 373 lines of code with tests"
echo ""
echo "Total: ~900 lines of working, tested code will be lost"
echo ""
echo "❓ Have you reviewed ANSWER.md and BRANCH_DELETION_REPORT.md?"
echo "❓ Are you sure this functionality is not needed?"
echo ""
# Confirm before deletion
read -p "Type 'DELETE' to confirm deletion (anything else to cancel): " confirmation
if [ "$confirmation" != "DELETE" ]; then
echo ""
echo "❌ Branch deletion cancelled."
echo "✅ Good choice! Review the functionality before deciding."
exit 0
fi
echo ""
echo "Deleting branches..."
# Delete first branch
echo "Deleting: jules-transparency-report-logic-11997309168661708357"
git push origin --delete jules-transparency-report-logic-11997309168661708357
# Delete second branch
echo "Deleting: jules-uncertainty-mitigation-strategies-10837117013490994765"
git push origin --delete jules-uncertainty-mitigation-strategies-10837117013490994765
echo ""
echo "✅ Both branches have been deleted from the remote repository."
echo ""
echo "Note: The functionality from these branches is now lost."
echo "If you need it later, you can find it in the closed PRs:"
echo " - PR #36: https://github.com/JustAGhosT/cognitive-mesh/pull/36"
echo " - PR #31: https://github.com/JustAGhosT/cognitive-mesh/pull/31"
echo ""
echo "You may also want to clean up local copies:"
echo " git branch -D jules-transparency-report-logic-11997309168661708357"
echo " git branch -D jules-uncertainty-mitigation-strategies-10837117013490994765"