Skip to content

Commit

Permalink
Merge pull request #7 from Neves-P/feature/disk_cleanup
Browse files Browse the repository at this point in the history
merged is a Bool (?)
  • Loading branch information
Neves-Bot authored Jun 11, 2024
2 parents fd3912e + 0b91343 commit cee6416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eessi_bot_event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,11 @@ def handle_pull_request_closed_event(self, event_info, pr):
action = request_body['action']
merged = request_body['pull_request']['merged']

if merged == 'True':
if merged:
self.log("PR merged: scanning directories used by PR")
self.log(f"pull_request event with action '{action}' and merged '{merged}' will be handled")
else:
self.log(f"Action '{action}' not handled as merged is '{merged}'")
self.log(f"Action '{action}' not handled as 'merged' is '{merged}'")
return
# at this point we know that we are handling a new merge
# NOTE: Permissions to merge are already handled through GitHub, we
Expand Down

0 comments on commit cee6416

Please sign in to comment.