discourse/plugins/automation/spec/lib/discourse_automation
Juan David Martínez Cubillos 65f324310d
DEV: Add automatically closed topics event trigger and adapt the automation plugin's auto tag_topic_script accordingly (#39235)
### Description

This PR fixes an issue where the :topic_closed DiscourseEvent only fired
when topics were closed manually, preventing automations from responding
to automatically closed topics. The event now fires for both manual and
automatic closures.

The auto_tag_topic automation script has been enhanced to take advantage
of this change by adding two new optional boolean fields
(closed_automatically and closed_manually) that allow users to configure
whether tags should be applied based on how the topic was closed.
2026-04-14 14:50:36 -05:00
..
event_handlers_spec.rb DEV: Add automatically closed topics event trigger and adapt the automation plugin's auto tag_topic_script accordingly (#39235) 2026-04-14 14:50:36 -05:00
stalled_topic_finder_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00