511 Commits
Author SHA1 Message Date
Jarek Radosz 428df114ff DEV: Deprecate the plugin (#260) 2025-07-14 13:04:00 +01:00
dependabot[bot] 57a08fa748 Bump rack from 3.1.12 to 3.1.16 (#259)
Bumps [rack](https://github.com/rack/rack) from 3.1.12 to 3.1.16.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.1.12...v3.1.16)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.1.16
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-21 17:45:46 +02:00
Jarek Radosz a47382b3fd DEV: Update linting config and run gjs-codemod (#258) 2025-06-05 11:35:58 +01:00
Loïc Guitaut 464400f7c8 DEV: Add system spec to check core features are working fine (#256) 2025-04-09 14:21:56 +02:00
Jarek Radosz ed6be8044a DEV: Update linting (#255) 2025-03-17 10:57:57 +00:00
Jarek Radosz 87ef9096b9 DEV: Update linting (#254) 2025-03-13 15:07:56 +00:00
Gary Pendergast 61a727a0d9 FIX: Sharing to Discord forum channels requires a thread_name (#251)
Discourse is able to share topics and replies to normal Discord channels, but it doesn't work with forum channels, which require an additional `thread_name` parameter.

This change fixes the issue by checking for the specific error the Discord returns when trying to share to a forum channel, adding the `thread_name`, then trying again.

This is intentionally a minimal fix, additional work would be required to make the sharing more closely fit the style of Discord forum channels.
2025-02-25 14:40:51 +11:00
Jarek Radosz 954009cd38 DEV: Update license (#250) 2025-02-24 11:21:07 +08:00
Sérgio Saquetim 860cc6751e DEV: Allow clearing topic ID when testing integration (#249) 2025-02-14 13:24:13 -03:00
dependabot[bot] 4e892a714b Bump rack from 3.0.11 to 3.0.12 (#248)
Bumps [rack](https://github.com/rack/rack) from 3.0.11 to 3.0.12.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/commits/v3.0.12)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-13 23:23:05 +00:00
David Taylor b092d2f11a DEV: Bump dependencies and fix linting (#247) 2025-02-06 17:44:36 +01:00
David Taylor 21a0546d7f DEV: Pin version for Discourse <3.5.0.beta1-dev (#246) 2025-02-05 19:59:34 +01:00
Discourse Translator Bot 29ad813cd0 Update translations (#245) 2025-01-21 15:55:00 +01:00
Gabriel Grubba 8498d88ccb FIX: Topic changing category was not triggering notifications (#244)
We moved `category_changed` notification to be a `whisper` but we forgot to update the check in `manager.rb` to verify not for a `small_post` but for a whisper.

Added a test to cover this case.
2025-01-16 15:33:49 -03:00
Kelv f0cac677c2 DEV: update deprecated icon names exclamation-circle and times-circle (#243) 2025-01-10 12:59:47 +08:00
Jarek Radosz b5c1f8b27f DEV: Forward-compatibility with a nokogiri upgrade (#242) 2025-01-05 01:09:53 +01:00
Discourse Translator Bot 52461548fb Update translations (#241) 2024-12-10 20:16:24 +01:00
Kelv d93cffcbd5 DEV: Update more deprecated Font Awesome icon names (#240) 2024-12-06 20:45:05 +01:00
Discourse Translator Bot 33816f184d Update translations (#238) 2024-12-04 11:59:09 +01:00
Kelv 908526739d DEV: Update deprecated Font Awesome icon names (#239) 2024-12-04 02:40:29 +01:00
Tobias Eigen 5b8d834332 Changed "Message." to "Message" in client.en.yml (#237)
Translators pointed out there is a stray period at the end of a label for a setting for sending slack messages,  so I removed it.
2024-12-02 17:39:53 +00:00
Melaine 3450662e68 FEATURE: Allow custom query parameters in Discord webhooks (#236) 2024-12-02 15:49:28 +00:00
David Taylor 71dcae5365 DEV: Update linting (#235) 2024-11-28 15:50:49 +01:00
David Taylor 3aaffe5629 DEV: Update linting (#234) 2024-11-20 18:52:42 +01:00
David Taylor 378d381133 DEV: Update linting (#233) 2024-11-20 15:45:26 +01:00
dependabot[bot] eb1d2e730b Bump cross-spawn from 7.0.3 to 7.0.6 (#232)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-19 10:39:27 +00:00
David Taylor 2a4936698b DEV: Update eslint config (#231) 2024-11-19 11:20:28 +01:00
Discourse Translator Bot 3905774c71 Update translations 2024-11-12 13:01:40 +00:00
Gabriel Grubba 3052a9cfb2 Revert "FIX: revert chat-integration move to discourse-automation" (#229)
* Revert "FIX: revert chat-integration move to discourse-automation (#219)"

This reverts commit 6e7917bd5e.

* DEV: Update plugin.rb

better error logging

* DEV:  adding`end` in `plugin.rb`
2024-11-06 09:08:25 -03:00
Gabriel Grubba ac91fe053b FIX: Update flaky test in showing error modal (#228)
the error:

```
Randomized with seed 43756
.F

Failures:

  1) Create channel shows error in chanel modal
     Failure/Error: super

     Capybara::ElementNotFound:
       Unable to find css ".error-message"

     [Screenshot Image]: /var/www/discourse/tmp/capybara/failures_r_spec_example_groups_create_channel_shows_error_in_chanel_modal_523.png

     ~~~~~~~ JS LOGS ~~~~~~~
     (no logs)
```

To try solving this, I've changed the ordering, before visiting the page I already set up the channel error.
2024-10-29 09:56:24 -03:00
dependabot[bot] b2d9ad36da Bump rexml from 3.3.6 to 3.3.9 (#227)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.6 to 3.3.9.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.6...v3.3.9)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 20:41:17 +01:00
Kelv 1eaa3c5750 DEV: resolve Rails/ReversibleMigrationMethodDefinition errors (#226) 2024-10-25 14:57:10 +08:00
Gabriel Grubba 19766fbc09 FIX: Error modal not showing data (#225)
* FIX: Error modal not showing data

Before, there was an issue where the error modal was not showing the data. This was because the error modal was not being shown when there were errors.

* DEV: add tests to ensure that error modal is showing data
2024-10-17 12:53:29 -03:00
Kelv 464ce019b5 DEV: Switch to use pnpm (#224) 2024-10-14 13:39:02 +02:00
Gabriel Grubba c72c01e955 FIX: Message triggering on topic creation (#222)
before topic tags changes trigger would fire on topic creation, now it only fires on tags changes
2024-10-07 16:07:35 -03:00
Discourse Translator Bot aaa2da6111 Update translations (#221) 2024-10-02 08:49:55 +02:00
Gabriel Grubba afc4540c03 FIX: adjust full_url method in ChatIntegrationReferencePost to return the correct URL (#220)
* FIX: adjust `full_url` method in `ChatIntegrationReferencePost` to return the correct URL

before it automation would fail because topic does not have `full_url` method

* DEV: remove logs
2024-09-18 05:37:52 -03:00
Gabriel Grubba 6e7917bd5e FIX: revert chat-integration move to discourse-automation (#219)
* Reapply "FIX: revert chat-integration move to discourse-automation (#214)" (#218)

This reverts commit f15c0fddf3.

* DEV: added more logging to the plugin

* DEV: update error logging with `.inspect` for better debugging
2024-09-12 10:44:39 -03:00
Gabriel Grubba f15c0fddf3 Revert "FIX: revert chat-integration move to discourse-automation (#214)" (#218)
This reverts commit a1c8f4ee9d.
2024-09-11 10:43:10 -03:00
Gabriel GrubbaandJarek Radosz 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 <[email protected]>

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <[email protected]>

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <[email protected]>

* Update spec/integration/automation_spec.rb

Co-authored-by: Jarek Radosz <[email protected]>

* Update lib/discourse_chat_integration/chat_integration_reference_post.rb

Co-authored-by: Jarek Radosz <[email protected]>

* 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 <[email protected]>
2024-09-11 10:42:52 -03:00
Discourse Translator Bot b36ddedb1a Update translations (#215) 2024-09-02 18:00:35 +02:00
dependabot[bot] 5caeed647e Bump micromatch from 4.0.5 to 4.0.8 (#217)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:46:24 +02:00
dependabot[bot] 0510ecff79 Bump rexml from 3.3.3 to 3.3.6 (#213)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.3 to 3.3.6.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.3...v3.3.6)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:29:11 +02:00
Gabriel Grubba a1c8f4ee9d FIX: revert chat-integration move to discourse-automation (#214)
* FIX: revert chat-integration move to discourse-automation

this reverses the changes made in 57b460737c

without deleting the migration.

* Revert "DEV: removing create post for category and tag changes setting (#210)"

This reverts commit 35925c4dac.

* DEV: merge both chat-integration rules and automation rules
2024-08-27 16:24:07 -03:00
Discourse Translator Bot 96ea198972 Update translations (#212) 2024-08-20 17:59:48 +02:00
Benoit 6acdb1e918 FEATURE: Added Power Automate as a new provider (#204) 2024-08-19 16:16:27 +01:00
Discourse Translator Bot 9e222691c3 Update translations (#211) 2024-08-14 08:10:15 +02:00
Gabriel Grubba 35925c4dac DEV: removing create post for category and tag changes setting (#210) 2024-08-13 17:28:29 -03:00
Gabriel Grubba 57b460737c FEATURE: add topic tags changed trigger to chat integration (#208)
* FEATURE: add topic tags changed trigger to chat integration

* FEATURE: add placeholder for reply to topic trigger

add description on how to use the placeholder

* DEV: Move slack message creation to provider

Add tests to new method

* FEATURE: add ${URL} to placeholder replacements and added tags link

If triggered when a topic tag is changed, message behavior will follow what user defined in message.

* DEV: Update tests with tags

* DEV: add post to topic for testing

* DEV: update test strings

* DEV: add early return for topic tags changed trigger

* DEV: move early return to use try/catch

* DEV: update `create_slack_message` to not send a tuple of values

* DEV: refactor method to be more readable

* FEATURE: add `${ADDED_AND_REMOVED}` for default texts

* DEV: Update typo in test

* DEV: Add tests to check when if `create_slack_message` raises an error

* DEV: Remove the `tag_added` from chat-integration filter

Added migration to handle the migration of the `tag_added` filter from the chat-integration plugin.

Only removed the logic from the plugin, data removal will happen in a future PR

* DEV: lint migration file

* DEV: update chat-integration to not show "tag_added" rules

* DEV: update added and missing tags logic

* DEV: update context variable name

* DEV: update migration to include `begin/rescue` block and added a list with available filters
2024-08-13 15:14:35 -03:00
Discourse Translator Bot ac44465a60 Update translations (#209) 2024-08-13 16:31:15 +02:00