From 9741b085d3d0870ee2c14b792d179c28fda19c14 Mon Sep 17 00:00:00 2001 From: hermes Date: Mon, 21 Sep 2026 01:32:01 +0000 Subject: [PATCH] Wake Hermes when Emil comments on a pull request --- .gitea/workflows/comment.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/comment.yml diff --git a/.gitea/workflows/comment.yml b/.gitea/workflows/comment.yml new file mode 100644 index 0000000..a4d4409 --- /dev/null +++ b/.gitea/workflows/comment.yml @@ -0,0 +1,22 @@ +# Wakes Hermes when Emil comments on a pull request of the devlog (a general comment, a review, or a comment on a line): it drops a signal file into a folder +# that a systemd path unit on the server watches; that unit runs Hermes, which answers the comment. Only Emil's own comments count: Hermes's replies never +# wake it again. Lives in the devlog repository as .gitea/workflows/comment.yml (it runs from main, so it starts working once merged). +name: wake-hermes +on: + issue_comment: + types: [created] + pull_request_review: + types: [submitted] + pull_request_review_comment: + types: [created] +jobs: + wake: + if: github.actor == 'Emil_Shanaty' + runs-on: python + container: + image: python:3.13-alpine + volumes: + - /home/hermes/trigger:/trigger + steps: + - name: Drop the signal + run: test -d /trigger && date -u +%s > "/trigger/comment-$GITHUB_RUN_ID" -- 2.54.0