We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a935765 commit aacbb41Copy full SHA for aacbb41
src/Services/GithubService.php
@@ -63,7 +63,19 @@ public function handleComment(array $payload): void
63
64
$this->commentOnNode(
65
(string) $payload['projects_v2_item']['content_node_id'],
66
- view('github-project::md.comment', compact('payload'))->render()
+ $this->generateCommentMessage($payload)
67
);
68
}
69
+
70
+ /**
71
+ * Generate the comment message from payload without posting it
72
+ *
73
+ * @param array<string, mixed> $payload
74
75
+ * @throws \Throwable
76
+ */
77
+ public function generateCommentMessage(array $payload): string
78
+ {
79
+ return view('github-project::md.comment', compact('payload'))->render();
80
+ }
81
0 commit comments