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
running diff right after new release when there are new changes, running diff between releases, where there are no changes between last run, and when there are no changes from the released code
vs_last_week_size = os.path.getsize('/tmp/weekly-delta.txt') if os.path.exists('/tmp/weekly-delta.txt') else 0
98
107
99
-
if vs_release_size == 0 or vs_last_week_size == 0:
100
-
message = f"📊 Weekly API Diff — {today}\n\nNo API changes vs release baseline this week — either nothing new has landed on main yet, or all pending changes were included in a release."
108
+
prev_files = sorted(
109
+
[f for f in __import__('glob').glob(f"{workspace}/snapshots/diffs/*.txt")],
110
+
key=os.path.getmtime, reverse=True
111
+
)
112
+
prev_date = os.path.basename(prev_files[0]).replace('.txt', '') if prev_files else None
113
+
prev_url = f"https://github.com/{snapshots_repo}/blob/main/diffs/{prev_date}.txt" if prev_date else None
message = f"📊 Weekly API Diff — {today}\n\nNo new API changes since {prev_ref}."
122
+
elif new_release:
123
+
message = f"📊 Weekly API Diff — {today}\n\nNew release since last diff — resetting baseline. Full diff vs release: {diff_url}\n\nReact ✅ if changes look expected, or 🚨 if something looks wrong."
0 commit comments