mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 05:33:12 +00:00
25 lines
687 B
Python
25 lines
687 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 from its own deployment
|
||
|
|
package ($LAMBDA_TASK_ROOT), so a copy must live under src/slack-bot/ (the
|
||
|
|
function's CodeUri). The root file is the single source of truth; run this after
|
||
|
|
editing it. CI's check_changelog.py 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()
|