8000 [Notifier] [Bridge] Add SlackOptions.thread_ts to allow reply messages · symfony/symfony@1b713ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b713ae

Browse files
committed
[Notifier] [Bridge] Add SlackOptions.thread_ts to allow reply messages
1 parent 3ca3de5 commit 1b713ae

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

src/Symfony/Component/Notifier/Bridge/Slack/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.4
5+
---
6+
7+
* Add SlackOptions.threadTs to send message as reply.
8+
49
5.3
510
---
611

src/Symfony/Component/Notifier/Bridge/Slack/SlackOptions.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,14 @@ public function username(string $username): self
181181

182182
return $this;
183183
}
184+
185+
/**
186+
* @return $this
187+
*/
188+
public function threadTs(string $threadTs): self
189+
{
190+
$this->options['thread_ts'] = $threadTs;
191+
192+
return $this;
193+
}
184194
}

src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackOptionsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function toArraySimpleOptionsProvider(): iterable
7070
yield [['unfurl_links' => true]];
7171
yield [['unfurl_media' => true]];
7272
yield [['username' => 'baz']];
73+
yield [['thread_ts' => '1503435956.000247']];
7374
}
7475

7576
/**
@@ -111,6 +112,7 @@ public function setProvider(): iterable
111112
yield ['unfurlLinks', 'unfurl_links', true];
112113
yield ['unfurlMedia', 'unfurl_media', true];
113114
yield ['username', 'username', 'baz'];
115+
yield ['threadTs', 'thread_ts', '1503435956.000247'];
114116
}
115117

116118
public function testSetBlock()

0 commit comments

Comments
 (0)
0