MCPcopy Create free account
hub / github.com/all-contributors/app / parseComment

Function parseComment

lib/parse-comment.js:260–272  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

258}
259
260function parseComment(message) {
261 const doc = nlp(message);
262
263 const action = doc.toLowerCase().match("#Action").normalize().out("string");
264
265 if (action.match("add")) {
266 return parseAddComment(message, action);
267 }
268
269 return {
270 action: false,
271 };
272}
273
274module.exports = parseComment;

Callers 2

processIssueCommentFunction · 0.85

Calls 1

parseAddCommentFunction · 0.85

Tested by

no test coverage detected