FIX: Only sync regular posts

FIX: Only sync regular posts

diff --git a/lib/discourse_code_review/github_pr_syncer.rb b/lib/discourse_code_review/github_pr_syncer.rb
index 2a38296..6e0111b 100644
--- a/lib/discourse_code_review/github_pr_syncer.rb
+++ b/lib/discourse_code_review/github_pr_syncer.rb
@@ -251,7 +251,14 @@ module DiscourseCodeReview
       topic = post.topic
       user = post.user
 
-      if post.post_number > 1 && !post.whisper? && post.custom_fields[GITHUB_NODE_ID].nil?
+      conditions = [
+        post.post_number > 1,
+        !post.whisper?,
+        post.post_type == Post.types[:regular],
+        post.custom_fields[GITHUB_NODE_ID].nil?
+      ]
+
+      if conditions.all?
         repo_name = topic.category.custom_fields[GithubCategorySyncer::GITHUB_REPO_NAME]
         issue_number = topic.custom_fields[GITHUB_ISSUE_NUMBER]

GitHub sha: 16fc9a03

We might want a test for that :wink:

DEV: Added tests for mirroring PR posts to github as comments