From 7158e9e657273628279d8c3a3f7b432ce70a32a3 Mon Sep 17 00:00:00 2001 From: Sean Hammond Date: Wed, 6 Nov 2024 15:57:23 +0000 Subject: [PATCH] Debugging --- .github/workflows/notify.yml | 1 + src/slack_annotations/core.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml index 73844ea..39d26cd 100644 --- a/.github/workflows/notify.yml +++ b/.github/workflows/notify.yml @@ -22,6 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Install slack-annotations run: python -m pipx install . + - run: cat /home/runner/work/slack-annotations/slack-annotations/cache.json - name: Check for annotations id: slack_message run: | diff --git a/src/slack_annotations/core.py b/src/slack_annotations/core.py index 9ed4210..332f686 100644 --- a/src/slack_annotations/core.py +++ b/src/slack_annotations/core.py @@ -33,6 +33,7 @@ def format_annotation(annotation): return f"{annotation['user_info']['display_name']}: {annotation['text']}" if annotations and cache_path: + print("Writing cache file") with open(cache_path, "w") as cache_file: json.dump({"search_after": annotations[-1]["created"]}, cache_file)