mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
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:
@ -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
|
Reference in New Issue
Block a user