discourse/plugins/automation/lib/discourse_automation/triggers/user_promoted.rb
Osama Sayegh 3d4faf3272
FEATURE: Merge discourse-automation (#26432)
Automation (previously known as discourse-automation) is now a core plugin.
2024-04-03 18:20:43 +03:00

14 lines
393 B
Ruby

# frozen_string_literal: true
DiscourseAutomation::Triggerable.add(DiscourseAutomation::Triggers::USER_PROMOTED) do
field :restricted_group, component: :group
field :trust_level_transition,
component: :choices,
extra: {
content: DiscourseAutomation::USER_PROMOTED_TRUST_LEVEL_CHOICES,
},
required: true
placeholder :trust_level_transition
end