Skip to content

Commit f8ffe77

Browse files
committed
Reorder comment switch
Signed-off-by: Shubham Sharma <[email protected]>
1 parent 7541ca2 commit f8ffe77

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/scripts/dapr_bot.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -167,21 +167,6 @@ export default async ({ github, context }) => {
167167
return;
168168
}
169169

170-
switch (commentBody) {
171-
case "/assign":
172-
executeAssign(github, context, isFromPulls);
173-
break;
174-
case "/ping-author":
175-
executePingAuthor(github, context, isFromPulls);
176-
break;
177-
case "/ok-to-e2e-test":
178-
executeEndToEndTests(github, context, isFromPulls);
179-
break;
180-
default:
181-
console.log(`[main] command ${commentBody} not found, exiting.`);
182-
break;
183-
}
184-
185170
// the author of this issue is interacting with it
186171
if (!isFromPulls && context.actor == issue.owner) {
187172
// if there is a 'needs-author-feedback' label,
@@ -201,4 +186,19 @@ export default async ({ github, context }) => {
201186
});
202187
});
203188
}
189+
190+
switch (commentBody) {
191+
case "/assign":
192+
executeAssign(github, context, isFromPulls);
193+
break;
194+
case "/ping-author":
195+
executePingAuthor(github, context, isFromPulls);
196+
break;
197+
case "/ok-to-e2e-test":
198+
executeEndToEndTests(github, context, isFromPulls);
199+
break;
200+
default:
201+
console.log(`[main] command ${commentBody} not found, exiting.`);
202+
break;
203+
}
204204
};

0 commit comments

Comments
 (0)