Skip to content

Commit

Permalink
chore: fix tests for multiple adding
Browse files Browse the repository at this point in the history
  • Loading branch information
tenshiAMD committed Sep 28, 2022
1 parent b46f02d commit d33f252
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 44 deletions.
10 changes: 5 additions & 5 deletions src/tasks/processIssueComment/utils/parse-comment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ function findWho(message, action) {
}

const whoMatchedByFor = findWhoSafe(`[.] for`)
// TODO: Unused
// if (whoMatchedByFor) {
// return whoMatchedByFor
// }
if (whoMatchedByFor) {
return whoMatchedByFor
}
}

function parseAddSentence(message, action) {
Expand Down Expand Up @@ -242,7 +241,8 @@ function parseComment(message) {
.normalize()
.out('string')

if (action === 'add') {
// TODO: Check each sentennce
if (action.match('add')) {
return parseAddComment(message, action)
}

Expand Down
Loading

0 comments on commit d33f252

Please sign in to comment.