Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a15312c

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

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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)