Skip to content

Commit 30cdf86

Browse files
style: fix formatting
1 parent c8dfc22 commit 30cdf86

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-up.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ export async function scaleUp(payloads: ActionRequestMessageSQS[]): Promise<stri
402402
logger.debug('Updated runner labels', { runnerLabels });
403403

404404
if (dynamicEC2Labels.length > 0) {
405-
406405
ec2OverrideConfig = parseEc2OverrideConfig(dynamicEC2Labels);
407406
if (ec2OverrideConfig) {
408407
logger.debug('EC2 override config parsed from labels', {

lambdas/functions/webhook/src/modules.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare namespace NodeJS {
55
PARAMETER_GITHUB_APP_WEBHOOK_SECRET: string;
66
PARAMETER_RUNNER_MATCHER_CONFIG_PATH: string;
77
REPOSITORY_ALLOW_LIST: string;
8-
ENABLE_DYNAMIC_LABELS: string
8+
ENABLE_DYNAMIC_LABELS: string;
99
RUNNER_LABELS: string;
1010
ACCEPT_EVENTS: string;
1111
}

lambdas/functions/webhook/src/runners/dispatch.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ async function handleWorkflowJob(
4848
return a.matcherConfig.exactMatch === b.matcherConfig.exactMatch ? 0 : a.matcherConfig.exactMatch ? -1 : 1;
4949
});
5050
for (const queue of matcherConfig) {
51-
if (canRunJob(body.workflow_job.labels, queue.matcherConfig.labelMatchers, queue.matcherConfig.exactMatch, enableDynamicLabels)) {
51+
if (
52+
canRunJob(
53+
body.workflow_job.labels,
54+
queue.matcherConfig.labelMatchers,
55+
queue.matcherConfig.exactMatch,
56+
enableDynamicLabels,
57+
)
58+
) {
5259
await sendActionRequest({
5360
id: body.workflow_job.id,
5461
repositoryName: body.repository.name,
@@ -85,7 +92,7 @@ export function canRunJob(
8592
enableDynamicLabels: boolean,
8693
): boolean {
8794
// Filter out ghr- and ghr-run- labels only if dynamic labels config is enabled
88-
const filteredLabels = enableDynamicLabels
95+
const filteredLabels = enableDynamicLabels
8996
? workflowJobLabels.filter((label) => !label.startsWith('ghr-'))
9097
: workflowJobLabels;
9198

0 commit comments

Comments
 (0)