Go to file
Gabriel Grubba 3f8b67d1c1
Feature: add chat integration reference post (#216)
* FEATURE: Add chat integration reference post

This class works similar to a post but it is not a post.

* DEV: change how `excerpt` method works

* feature: Add `send_chat_integration_message` scriptable

add `send_chat_integration_message` scriptable that uses the rules to send a message to the chat provider
add locale strings for the new scriptable
update `ChatIntegrationReferencePost` `excerpt` method
add tests for `ChatIntegrationReferencePost`

* DEV: Add `get_channel_by_name` to every provider

This makes using `trigger_notification` easier with every provider as well.

* DEV: Add `get_channel_name` to all providers

This method gets the name of the channel based on how the provider identifies it.
Updates channel_name in locales yaml
Adds migrate_tag_added_filter_to_all_providers.rb to move all existing rules to use Automation

* DEV: Add removal of old migration data

Update small action locales with strings from core

* DEV: solve review comments

* DEV: update test locale strings

* DEV: remove empty line to trigger lint

* DEV: lint applied

* DEV: Add tests for automation integration

* DEV: add rails logger for when automatio error occurs

* DEV: move migration to be SQL only

Update provider helper to use hashes instead of dot notation

* DEV: update migration with correct table names

* DEV: Update migrate_tag_added_filter_to_all_providers to use smaller SQL queries

Commented out migrate_tag_added_from_filter_to_automation.rb

* DEV: update comments in migration file

* DEV: update indentation in client.en.yml

* DEV: update with review comments

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update spec/integration/automation_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update lib/discourse_chat_integration/chat_integration_reference_post.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* DEV: update specs with review comments

* DEV: update typos in tests

* DEV: inlined functions for getting channel name for provider in migration

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-09-11 10:42:52 -03:00
.github/workflows DEV: Update CI workflows (#157) 2023-01-10 18:06:46 +00:00
admin/assets/javascripts/admin FIX: revert chat-integration move to discourse-automation (#214) 2024-08-27 16:24:07 -03:00
app FIX: revert chat-integration move to discourse-automation (#214) 2024-08-27 16:24:07 -03:00
assets FIX: Form validation bugs, new modal api, glimmer (#182) 2023-12-11 20:00:34 +01:00
config Feature: add chat integration reference post (#216) 2024-09-11 10:42:52 -03:00
db/migrate Feature: add chat integration reference post (#216) 2024-09-11 10:42:52 -03:00
lib/discourse_chat_integration Feature: add chat integration reference post (#216) 2024-09-11 10:42:52 -03:00
spec Feature: add chat integration reference post (#216) 2024-09-11 10:42:52 -03:00
test/javascripts/acceptance FIX: Form validation bugs, new modal api, glimmer (#182) 2023-12-11 20:00:34 +01:00
.discourse-compatibility DEV: Pin plugin for Discourse < 3.4.0.beta1-dev (#206) 2024-08-02 17:05:19 +08:00
.eslintrc.cjs DEV: Update linting (#181) 2023-11-29 23:01:31 +01:00
.gitignore FEATURE: Added Power Automate as a new provider (#204) 2024-08-19 16:16:27 +01:00
.prettierrc.cjs DEV: Update linting (#181) 2023-11-29 23:01:31 +01:00
.rubocop.yml DEV: Introduce syntax_tree for ruby formatting (#149) 2022-12-29 13:31:05 +01:00
.streerc DEV: Introduce syntax_tree for ruby formatting (#149) 2022-12-29 13:31:05 +01:00
.template-lintrc.cjs DEV: Update linting (#181) 2023-11-29 23:01:31 +01:00
Gemfile DEV: Introduce syntax_tree for ruby formatting (#149) 2022-12-29 13:31:05 +01:00
Gemfile.lock Bump rexml from 3.3.3 to 3.3.6 (#213) 2024-09-01 12:29:11 +02:00
LICENSE Initial commit 2017-06-26 15:08:06 +01:00
README.md DEV: Update README.md (#107) 2022-02-21 21:03:09 +01:00
package.json DEV: Update rubocop-discourse to version 3.8.0 (#198) 2024-05-28 11:16:00 +02:00
plugin.rb Feature: add chat integration reference post (#216) 2024-09-11 10:42:52 -03:00
translator.yml DEV: Switch from Transifex to Crowdin 2020-07-16 14:00:38 +02:00
yarn.lock Bump micromatch from 4.0.5 to 4.0.8 (#217) 2024-09-01 12:46:24 +02:00

README.md

Chat Integration Plugin

Integrate your chat system of choice with Discourse.

For more information, please see: https://meta.discourse.org/t/chatroom-integration-plugin-discourse-chat-integration/66522