FEATURE: Added trigger for topic tags changed (#28176)

* FEATURE: Added trigger for topic tags changed

* DEV: register new file in plugin.rb

* DEV: update to use already existing `:topic_tags_changed` event

* DEV: Add tests to topic_tags_changed trigger

remove `watching_user` field

* DEV: add more tests to topic_tags_changed_spec.rb

* DEV: update tests and implementation for topic tags changed automation trigger

* DEV: update checking for tags changed automation

* DEV: Update argument application for `handle_topic_tags_changed`
This commit is contained in:
Gabriel Grubba
2024-08-02 09:58:51 -03:00
committed by GitHub
parent 7977ae61f7
commit ec46487870
7 changed files with 193 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
DiscourseAutomation::Triggerable.add(DiscourseAutomation::Triggers::TOPIC_TAGS_CHANGED) do
field :watching_categories, component: :categories
field :watching_tags, component: :tags
end