Skip to content

Commit d4f75c3

Browse files
authored
Fix bad condition for applicableCommands causing dt to run on tsgo (#131)
1 parent 0c9f853 commit d4f75c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

GithubCommentReader/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,10 @@ async function webhook(params) {
585585

586586
const tsgo = params.repo.includes("typescript-go")
587587
const applicableCommands = Array.from(commands.entries()).filter(([, command]) => {
588-
if (!params.isPr && command.prOnly && tsgo && !command.tsgoAllowed) {
588+
if (!params.isPr && command.prOnly) {
589+
return false;
590+
}
591+
if (tsgo && !command.tsgoAllowed) {
589592
return false;
590593
}
591594
return command.authorAssociations.includes(params.authorAssociation);

0 commit comments

Comments
 (0)