afterhours-shift-manager/scripts/sync_changelog.py
Adam Moussa 26e9716df4
Some checks are pending
Deploy API / Resolve target (push) Waiting to run
Deploy API / Deploy API to (push) Blocked by required conditions
fix(ci): drop leftover changelog-guard and release-notifier (PLAT-219) (#266)
Prod is already a human GitHub Release. Remove the SAM tagging path so CHANGELOG.md stays App Home copy and leftover notifier IAM is destroyed on the next apply.
2026-09-21 23:24:05 +00:00

23 lines
629 B
Python

#!/usr/bin/env python3
"""Copy the canonical root CHANGELOG.md into the slack-bot package.
The bot's App Home "What's New" tab reads CHANGELOG.md next to app.py in the
Fargate image, so a copy must live under src/slack-bot/. The root file is the
single source of truth; run this after editing it. Pytest fails if the two drift.
"""
import pathlib
import shutil
ROOT = pathlib.Path(__file__).resolve().parents[1]
def main() -> None:
src = ROOT / "CHANGELOG.md"
dst = ROOT / "src" / "slack-bot" / "CHANGELOG.md"
shutil.copyfile(src, dst)
print(f"Synced {src} -> {dst}")
if __name__ == "__main__":
main()