From 6430e7ceb96783946bcc6096b00a1bc724933d45 Mon Sep 17 00:00:00 2001 From: Carlos Manuel Soares Date: Thu, 11 Jan 2024 06:06:56 +0000 Subject: [PATCH] Bugfix --- .github/workflows/test-action.yml | 4 ++-- README.md | 2 +- action.yml | 2 +- src/notify_webhook.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index a603979..c963d18 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -38,7 +38,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - name: Run container (from latest release) - uses: docker://ghcr.io/cmpsoares/gh-team-mention-notifier:v1.0.18 + uses: docker://ghcr.io/cmpsoares/gh-team-mention-notifier:v1.0.19 with: config_path: './test/config.json' env: @@ -66,7 +66,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - name: Run GitHub Action (from latest release) - uses: cmpsoares/gh-team-mention-notifier@v1.0.18 + uses: cmpsoares/gh-team-mention-notifier@v1.0.19 with: config_path: './test/config.json' env: diff --git a/README.md b/README.md index 8e0c27b..cb7d42d 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Notify Teams - uses: cmpsoares/gh-team-mention-notifier@v1.0.18 + uses: cmpsoares/gh-team-mention-notifier@v1.0.19 with: config_path: 'notifications_config.json' env: diff --git a/action.yml b/action.yml index fd75bfe..3de842e 100644 --- a/action.yml +++ b/action.yml @@ -11,4 +11,4 @@ inputs: default: 'notifications_config.json' runs: using: 'docker' - image: 'docker://ghcr.io/cmpsoares/gh-team-mention-notifier:v1.0.18' + image: 'docker://ghcr.io/cmpsoares/gh-team-mention-notifier:v1.0.19' diff --git a/src/notify_webhook.py b/src/notify_webhook.py index 1c2aa44..243b63a 100644 --- a/src/notify_webhook.py +++ b/src/notify_webhook.py @@ -106,7 +106,7 @@ def main(): debug_log(f"Event type: {event_type}") # Extract relevant data based on the type of event - comment_body, html_url, title, creator, creator_avatar, event_created_at, creator_full_name = '', '', '', '', '', '' + comment_body, html_url, title, creator, creator_avatar, event_created_at, creator_full_name = '', '', '', '', '', '', '' if 'comment' in event: comment_body = event['comment']['body'] html_url = event['comment']['html_url']