Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/no-carrier.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Rebert <github@rebertia.com>2015-04-26 04:08:03 +0300
committerChris Rebert <github@rebertia.com>2015-04-26 04:08:03 +0300
commitc79585f338880919a4ee09db33c6576e6e78966e (patch)
treeefd67690307395e58ffcd42a6325ceea246053aa /src
parentd7a4f25842554c77e3251571b8b129b0add4f8ee (diff)
Adjust comment template copy
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/com/getbootstrap/no_carrier/Main.scala12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/scala/com/getbootstrap/no_carrier/Main.scala b/src/main/scala/com/getbootstrap/no_carrier/Main.scala
index 095ced4..aceef36 100644
--- a/src/main/scala/com/getbootstrap/no_carrier/Main.scala
+++ b/src/main/scala/com/getbootstrap/no_carrier/Main.scala
@@ -58,11 +58,13 @@ object Main extends App with StrictLogging {
logger.info(s"OP never delivered on issue #${issue.number}. Going to close it out.")
if (enabled) {
val explanatoryComment =
- s"""This issue is being automatically closed since the original poster (or another relevant commenter) hasn't responded to the question or request made to them ${timeout.toDays} days ago.
- |We are therefore assuming that the user has lost interest in this issue or was able to resolve their problem on their own.
- |If the user does later end up responding, a team member will be happy to reopen this issue.
- |After a long period of further inactivity, this issue may get automatically locked.
- |""".stripMargin
+ s"""Hey there!
+ |
+ |We're automatically closing this issue since the original poster (or another commenter) hasn't yet responded to the question or request made to them ${timeout.toDays} days ago. We therefore assume that the user has lost interest or resolved the problem on their own. Closed issues that remain inactive for a long period may get automatically locked.
+ |
+ |Don't worry though; if this is in error, let us know with a comment and we'll be happy to reopen the issue.
+ |
+ |Thanks!""".stripMargin
val attempt = Try{ issue.comments.post(explanatoryComment) }.flatMap{ comment => {
logger.info(s"Posted comment #${comment.number}")