mirror of
https://github.com/discourse/discourse.git
synced 2024-12-21 18:23:42 +08:00
84b4e4bddf
This commit adds a new automation script for creating topics. It's very similar to the existing 'create a post' automation, except that it posts new topics in a specific category and with optional tags. Internal topic: t/125829.
26 lines
939 B
Ruby
26 lines
939 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseAutomation
|
|
module Scripts
|
|
ADD_USER_TO_GROUP_THROUGH_CUSTOM_FIELD = "add_user_to_group_through_custom_field"
|
|
APPEND_LAST_CHECKED_BY = "append_last_checked_by"
|
|
APPEND_LAST_EDITED_BY = "append_last_edited_by"
|
|
AUTO_RESPONDER = "auto_responder"
|
|
AUTO_TAG_TOPIC = "auto_tag_topic"
|
|
BANNER_TOPIC = "banner_topic"
|
|
CLOSE_TOPIC = "close_topic"
|
|
FLAG_POST_ON_WORDS = "flag_post_on_words"
|
|
GIFT_EXCHANGE = "gift_exchange"
|
|
GROUP_CATEGORY_NOTIFICATION_DEFAULT = "group_category_notification_default"
|
|
PIN_TOPIC = "pin_topic"
|
|
POST = "post"
|
|
SEND_PMS = "send_pms"
|
|
SUSPEND_USER_BY_EMAIL = "suspend_user_by_email"
|
|
TOPIC = "topic"
|
|
TOPIC_REQUIRED_WORDS = "topic_required_words"
|
|
USER_GLOBAL_NOTICE = "user_global_notice"
|
|
USER_GROUP_MEMBERSHIP_THROUGH_BADGE = "user_group_membership_through_badge"
|
|
ZAPIER_WEBHOOK = "zapier_webhook"
|
|
end
|
|
end
|