Commit Graph

399 Commits

Author SHA1 Message Date
jjaffeux d483f4ae5a DEV: s/JSON.parse(response.body)/response.parsed_body 2020-09-25 20:47:30 +02:00
Justin DiRose 77f3077d62
DEV: Add plugin testing workflow 2020-09-25 13:07:08 -05:00
Justin DiRose 2ea757790b
DEV: Add linting workflow 2020-09-25 13:06:55 -05:00
jjaffeux 51d3cc93cb DEV: linting 2020-09-22 17:11:12 +02:00
Discourse Translator Bot 964c282931 Update translations 2020-09-22 13:02:27 +00:00
Discourse Translator Bot ac31f1dac0 Update translations 2020-09-16 10:16:20 +00:00
Discourse Translator Bot 787142253f Update translations 2020-09-15 13:02:23 +00:00
Discourse Translator Bot ff85581094 Update translations 2020-09-09 14:58:21 +00:00
Joffrey JAFFEUX 9327e705cf
DEV: apply coding standards (#43) 2020-09-04 13:23:28 +02:00
Discourse Translator Bot ebb190d5e6 Update translations 2020-08-18 13:01:25 +00:00
David Taylor bb4143a695
FIX: Allow discord.com webhook URLs 2020-08-18 00:34:59 +01:00
David Taylor fd51671991
DEV: Remove trailing whitespace 2020-08-14 19:24:05 +01:00
David Taylor bdca153a09
FIX: Send new topic Slack notifications to the correct thread
This applies when topics are created using the slack transcript feature, and there is a rule configured with filter=thread
2020-08-14 19:15:02 +01:00
Discourse Translator Bot d93fea8206 Update translations 2020-08-11 13:02:07 +00:00
Tosin Sonuyi 1a49df23c6
update groupme message format for clarity (#41) 2020-08-10 12:29:08 -04:00
Discourse Translator Bot f48df632cb Update translations 2020-08-05 13:25:16 +00:00
Penar Musaraj f93b540f93
DEV: Use CSS custom properties for colors in SCSS
Prepares the plugin for an upcoming change in core while maintaining
backwards compatiblity.
2020-08-03 13:28:45 -04:00
Ahmed Gagan fa5ef22262
FEATURE: Support for Microsoft Teams webhooks (#42) 2020-07-29 17:20:02 +01:00
dependabot[bot] 0f31447a64
Bump js-yaml from 3.12.1 to 3.14.0 (#40)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.12.1 to 3.14.0.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.12.1...3.14.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:04:00 -04:00
dependabot[bot] a9e9167415
Bump lodash from 4.17.11 to 4.17.19 (#39)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 09:43:33 -04:00
Discourse Translator Bot bb607997c8 DEV: Switch from Transifex to Crowdin 2020-07-16 14:00:38 +02:00
David Taylor 933a3f5aa2
DEV: Apply prettier 2020-07-16 12:41:05 +01:00
David Taylor 945c0a6e4f
FIX: Allow using `thread` filter for new rules 2020-07-16 12:31:42 +01:00
Robin Ward 509360e190 FIX: You can't return from a block, especially an async one 2020-06-26 11:52:00 -04:00
Neil Lalonde ecaec7b33e
Update translations 2020-06-24 11:40:52 -04:00
David Taylor e3448d3a33
FIX: Allow selecting any tag for rule, ignoring tag group restrictions 2020-06-19 09:32:51 +01:00
Guo Xiang Tan 424c477043
Make rubocop happy. 2020-06-17 15:45:10 +08:00
Michael K Johnson da9106127a
FEATURE: Enable optional support for threading slack posts (#38)
When creating a new Discourse post from slack with the `post` feature, record the
slack `ts` thread ID for the resulting topic post using an HTML comment to pass
the `ts` through.

When notifying slack of new Discourse posts, record the slack `ts` thread ID in
the post's topic if it has not yet been recorded. (Normally, this will be done
for the topic post, except where notifications are being posted for old topics
before this feature was created.)

Add a new rule filter `thread` which posts threaded responses to slack if there
is a `ts` recorded for the post topic.

Modify the `trigger_notifications` interface to enable other integrations to
implement similar functionality.

Present the `thread` rule in the help text and admin UI only for the slack
providers.

https://meta.discourse.org/t/optionally-threading-posts-to-parent-topic-in-slack-integration/150759
2020-06-15 16:45:25 +01:00
Gerhard Schlager b2daff34eb DEV: Use consistent interpolation key format in translations 2020-06-02 19:21:30 +02:00
Neil Lalonde 080a0b916e
Update translations 2020-05-27 16:53:55 -04:00
Robin Ward 368b60cd80 DEV: Discourse.Route has been deprecated 2020-05-12 14:24:33 -04:00
Tosin Sonuyi ccbc41428b
GroupMe added as Provider (#36)
* adds groupme configuration and relative

* first pass at groupme provider

* add group id site setting w/ english translation

* rework to use bots groupme api intstead of developer, no access tokens reqd

also should catch 404 response codes

* add strings to locale yml files for i18n

* better error handling for multi-bot case

* add channel param for separate Groupme instances, include name in errorbody

* bugfix for multi bot msg forwarding

this gives us the ability to treat diff groupme instances like slack channels, lots of people use them this way for better or worse. use case is certain category posts only go to a particular GM instance

* add spec for groupme provider

* fix channel param constraint

* specify channels by groupme name, not bot api token

* fix some linting issues w/ spacing

* newline and trailing space lint fixes
2020-05-11 15:10:37 -04:00
Neil Lalonde ad3e73c964
Update translations 2020-05-04 10:49:19 -04:00
Jarek Radosz 8384f72cf8 DEV: Update rubocop-discourse 2020-05-02 11:46:33 +02:00
Jarek Radosz a3face98e9 DEV: Change specs to not rely on a trailing whitespace 2020-05-02 09:50:48 +02:00
Jarek Radosz bd4923ad48 DEV: Add rubocop-discourse gem 2020-05-02 09:32:30 +02:00
Jarek Radosz 6b3eba27fa
DEV: Remove a duplicated `let` definition 2020-03-27 17:42:15 +01:00
Neil Lalonde 898fc6a080 Update translations 2020-02-25 10:32:48 -05:00
Robin Ward a41abfbfd6 FIX: Rubocop 2020-02-19 14:16:39 -05:00
Penar Musaraj 63ddf106a4 DEV: Find/replace deprecated decorators 2020-02-19 11:56:45 -05:00
Neil Lalonde 7c2d265d69 Update translations 2020-02-13 15:05:10 -05:00
Neil Lalonde 15cbd16937 Update translations 2020-01-20 11:21:05 -05:00
nepeat c92b93ded1 FEATURE: Include category title and color in Discord payload (#19) 2020-01-06 16:47:00 +00:00
Neil Lalonde f023574194 Update translations 2019-12-19 12:50:10 -05:00
Sam Saffron b4e6a15ccf DEV: lint file
Corrects rubocop which no longer allows explicit returns
2019-12-10 11:58:07 +11:00
Joffrey JAFFEUX 6540d8b957 DEV: uses Discourse.redis instead of $redis 2019-12-03 10:45:32 +01:00
Saj Goonatilleke 05d4338a12 FIX: telegram: Not all channel posts contain text (#34)
The `text` field is marked optional, and is not guaranteed to exist:

https://core.telegram.org/bots/api#message

We should silently ignore these actions (while responding with a
positive acknowledgement) instead of throwing a `NoMethodError`.
2019-11-20 11:45:34 +01:00
Penar Musaraj 6fcf381751 Rubocop redundant return fix 2019-11-14 15:03:49 -05:00
Neil Lalonde bf6f66ada8 Update translations 2019-11-06 10:46:15 -05:00
Neil Lalonde 5236720825 Update translations 2019-10-10 11:25:36 -04:00