mirror of
https://github.com/discourse/discourse.git
synced 2024-12-27 11:40:58 +08:00
3d4faf3272
Automation (previously known as discourse-automation) is now a core plugin.
14 lines
393 B
Ruby
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
|