From 4160bd1bbc563364df5a71478a0666a9f0150b94 Mon Sep 17 00:00:00 2001
From: Neves-P
Date: Tue, 11 Jun 2024 17:34:21 +0200
Subject: [PATCH] Fix bug in getting repository name
---
eessi_bot_event_handler.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eessi_bot_event_handler.py b/eessi_bot_event_handler.py
index 3d6dc6d..3f9a8e1 100644
--- a/eessi_bot_event_handler.py
+++ b/eessi_bot_event_handler.py
@@ -638,7 +638,7 @@ def handle_pull_request_closed_event(self, event_info, pr):
# 2) Get trash_bin_dir from configs
trash_bin_root_dir = self.cfg[config.SECTION_MERGED_PR][config.MERGED_PR_SETTING_TRASH_BIN_ROOT_DIR]
- repo_name = event_info['repository']['full_name']
+ repo_name = request_body['repository']['full_name']
dt = datetime.now(timezone.utc)
trash_bin_dir = "/".join([trash_bin_root_dir, repo_name, dt.strftime('%Y%m%d')])