Repository: JasonEtco/todo
Pull request #37 (2017-10-06 06:02:14)

Use link to homepage in issue body footer
Use the [link the the landing page](https://todo.jasonet.co) in the issue footer instead of the link to the GitHub repo.


Patch:
diff --git a/lib/generate-body.js b/lib/generate-body.js
index f517bf7..a8d7f7c 100644
--- a/lib/generate-body.js
+++ b/lib/generate-body.js
@@ -59,7 +59,7 @@ function generateAssignedTo (autoAssign = true, author) {
 module.exports = function generateBody (context, config, title, file, contents, author, sha, pr) {
   const separator = '\n\n---\n\n'
   const assignedToString = generateAssignedTo(config.autoAssign, author)
-  const footer = `###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a \`${config.keyword}\` comment in ${sha}${pr ? ` in #${pr}` : ''}.${assignedToString}`
+  const footer = `###### This issue was generated by [todo](https://todo.jasonet.co) based on a \`${config.keyword}\` comment in ${sha}${pr ? ` in #${pr}` : ''}.${assignedToString}`
 
   const re = new RegExp(`${title}\n.*@body (.*)`, 'gim')
   const bodyRegex = re.exec(contents)


Test patch:
diff --git a/__tests__/fixtures/bodies/autoAssignArr.txt b/__tests__/fixtures/bodies/autoAssignArr.txt
index ff21cb0..d3ff4a7 100644
--- a/__tests__/fixtures/bodies/autoAssignArr.txt
+++ b/__tests__/fixtures/bodies/autoAssignArr.txt
@@ -2,6 +2,6 @@ https://github.com/JasonEtco/test/blob/f7d286aa6381bbb5045288496403d9427b0746e2/
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been automagically assigned to @JasonEtco, @matchai and @defunkt.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been automagically assigned to @JasonEtco, @matchai and @defunkt.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/autoAssignFalse.txt b/__tests__/fixtures/bodies/autoAssignFalse.txt
index 9a815d0..dfa535d 100644
--- a/__tests__/fixtures/bodies/autoAssignFalse.txt
+++ b/__tests__/fixtures/bodies/autoAssignFalse.txt
@@ -2,6 +2,6 @@ https://github.com/JasonEtco/test/blob/f7d286aa6381bbb5045288496403d9427b0746e2/
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/autoAssignString.txt b/__tests__/fixtures/bodies/autoAssignString.txt
index 3387672..7bd517e 100644
--- a/__tests__/fixtures/bodies/autoAssignString.txt
+++ b/__tests__/fixtures/bodies/autoAssignString.txt
@@ -2,6 +2,6 @@ https://github.com/JasonEtco/test/blob/f7d286aa6381bbb5045288496403d9427b0746e2/
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been automagically assigned to @matchai.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been automagically assigned to @matchai.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/caseinsensitive.txt b/__tests__/fixtures/bodies/caseinsensitive.txt
index 698c6b3..63be9c7 100644
--- a/__tests__/fixtures/bodies/caseinsensitive.txt
+++ b/__tests__/fixtures/bodies/caseinsensitive.txt
@@ -2,6 +2,6 @@ https://github.com/JasonEtco/test/blob/f7d286aa6381bbb5045288496403d9427b0746e2/
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been assigned to @JasonEtco because they committed the code.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been assigned to @JasonEtco because they committed the code.
 
 <!-- probot = {"10000":{"title":"My keyword is case insensitive!","file":"caseinsensitive.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/default.txt b/__tests__/fixtures/bodies/default.txt
index 2d557c5..6b3d569 100644
--- a/__tests__/fixtures/bodies/default.txt
+++ b/__tests__/fixtures/bodies/default.txt
@@ -2,6 +2,6 @@ https://github.com/JasonEtco/test/blob/f7d286aa6381bbb5045288496403d9427b0746e2/
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/no-blob.txt b/__tests__/fixtures/bodies/no-blob.txt
index 6095d96..7511bcb 100644
--- a/__tests__/fixtures/bodies/no-blob.txt
+++ b/__tests__/fixtures/bodies/no-blob.txt
@@ -1,3 +1,3 @@
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/pr.txt b/__tests__/fixtures/bodies/pr.txt
index bf2ad2a..65abee4 100644
--- a/__tests__/fixtures/bodies/pr.txt
+++ b/__tests__/fixtures/bodies/pr.txt
@@ -2,6 +2,6 @@ https://github.com/JasonEtco/test/blob/f7d286aa6381bbb5045288496403d9427b0746e2/
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been assigned to @JasonEtco because they committed the code.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2 in #10. It's been assigned to @JasonEtco because they committed the code.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/with-body-no-blob.txt b/__tests__/fixtures/bodies/with-body-no-blob.txt
index de801c0..52ebc0f 100644
--- a/__tests__/fixtures/bodies/with-body-no-blob.txt
+++ b/__tests__/fixtures/bodies/with-body-no-blob.txt
@@ -2,6 +2,6 @@ This one has a body
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file
diff --git a/__tests__/fixtures/bodies/with-body.txt b/__tests__/fixtures/bodies/with-body.txt
index b184242..2271608 100644
--- a/__tests__/fixtures/bodies/with-body.txt
+++ b/__tests__/fixtures/bodies/with-body.txt
@@ -6,6 +6,6 @@ https://github.com/JasonEtco/test/blob/f7d286aa6381bbb5045288496403d9427b0746e2/
 
 ---
 
-###### This issue was generated by [todo](https://github.com/jasonetco/todo) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
+###### This issue was generated by [todo](https://todo.jasonet.co) based on a `@todo` comment in f7d286aa6381bbb5045288496403d9427b0746e2. It's been assigned to @JasonEtco because they committed the code.
 
 <!-- probot = {"10000":{"title":"Jason!","file":"index.js","author":"JasonEtco","sha":"f7d286aa6381bbb5045288496403d9427b0746e2"}} -->
\ No newline at end of file