Skip to content

Commit 222bccb

Browse files
committed
feat: allow only tagged bot names
1 parent 4fb610e commit 222bccb

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/utils/isMessageForBot.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ const { GIHUB_BOT_NAME } = require('./settings')
33
function isMessageForBot(message) {
44
const isMessageForBot =
55
message.includes(`@${GIHUB_BOT_NAME}`) ||
6-
message.includes(`@allcontributors[bot]`) ||
7-
message.includes(`@AllContributorsBot`) // TODO: phase this one out
6+
message.includes(`@allcontributors[bot]`)
87
return isMessageForBot
98
}
109

test/utils/isMessageForBot.test.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ describe('isMessageForBot', () => {
1515
`@allcontributors[bot] please add jakebolam for doc, infra and code`,
1616
),
1717
).toBe(true)
18-
19-
// TODO: Legacy phase this one out
20-
expect(
21-
isMessageForBot(
22-
`@AllContributorsBot please add jakebolam for doc, infra and code`,
23-
),
24-
).toBe(true)
2518
})
2619

2720
test('Not for us', () => {

0 commit comments

Comments
 (0)