File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ results/
5656# Sync logs
5757logs /
5858
59+ # CSV backups
60+ backups /
61+
5962# Fetch cache (repos list, PR URLs)
6063cache /
6164
Original file line number Diff line number Diff line change @@ -35,7 +35,20 @@ while [[ $# -gt 0 ]]; do
3535 esac
3636done
3737
38- mkdir -p logs
38+ BACKUP_DIR=" backups"
39+ BACKUP_RETENTION_DAYS=7
40+
41+ mkdir -p logs " $BACKUP_DIR "
42+
43+ # Backup CSV before any changes
44+ if [[ -f " $CSV_FILE " ]]; then
45+ BACKUP_FILE=" $BACKUP_DIR /complexity-report-$( date +%Y%m%d-%H%M%S) .csv"
46+ cp " $CSV_FILE " " $BACKUP_FILE "
47+ echo " Backup: $BACKUP_FILE "
48+ fi
49+
50+ # Prune backups older than retention period
51+ find " $BACKUP_DIR " -name " complexity-report-*.csv" -mtime +$BACKUP_RETENTION_DAYS -delete 2> /dev/null || true
3952
4053echo " === PR Complexity Sync ===" | tee -a " $LOG_FILE "
4154echo " Started: $( date -u +%Y-%m-%dT%H:%M:%SZ) " | tee -a " $LOG_FILE "
Original file line number Diff line number Diff line change @@ -4,12 +4,15 @@ nvgoldin
44orhss
55OmerBor
66hadasdd
7+ noamtzu
8+ OronW
79[FullStack]
810shiran1989
911Morzus90
1012Inara-Rivery
1113yairabramovitch
1214FeiginNastia
15+ noam-salomon
1316[Integration]
1417RonKlar90
1518OmerMordechai1
@@ -26,10 +29,13 @@ pocha-vijaymohanreddy
2629mayanks-Boomi
2730Srivasu-Boomi
2831vijay-prakash-singh-dev
32+ bharat-boomi
2933vs1328
3034[Devops]
3135alonalmog82
3236EdenReuveniRivery
3337Alonreznik
3438devops-rivery
35-
39+ Mikeygoldman1
40+ RavikiranDK
41+ Chen-Poli
You can’t perform that action at this time.
0 commit comments