From 1a8a208d5150d2e47824e5abff67b8bb777fa224 Mon Sep 17 00:00:00 2001 From: Jim Cramer Date: Sun, 13 Oct 2024 14:12:33 +0200 Subject: [PATCH] Spell out allowed branch names in warning messages --- test-runner/compliance.ts | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/test-runner/compliance.ts b/test-runner/compliance.ts index bf520b67..1b432268 100644 --- a/test-runner/compliance.ts +++ b/test-runner/compliance.ts @@ -67,17 +67,34 @@ export function diffExerciseHashes( } const MAIN_BRANCH_MESSAGE = ` -You are currently on the *main* branch. In the Assignments repository you should not be working directly on the main branch. +You are currently on the *main* branch. In the Assignments repository you should +not be working directly on the main branch. -Please create a new branch for each week (e.g. YOUR_NAME-w2-JavaScript) as instructed in the link below: +Please create a new branch for each week. Valid branch names should +start with your name, followed by one of these suffixes: + +-w2-JavaScript +-w3-JavaScript +-w1-Browsers +-w1-UsingAPIs +-w2-UsingAPIs + +For more information please refer to the link below: https://github.com/HackYourFuture/JavaScript/blob/main/hand-in-assignments-guide.md#12-every-week `; const BRANCH_NAME_MESSAGE = ` -Your branch name does conform to the mandated pattern, e.g. YOUR_NAME-w2-JavaScript. +Your branch name does conform to the mandated pattern. Valid branch names should +start with your name, followed by one of these suffixes: + +-w2-JavaScript +-w3-JavaScript +-w1-Browsers +-w1-UsingAPIs +-w2-UsingAPIs -Please rename your branch to match the pattern as described in the link below: +For more information please refer to the link below: https://github.com/HackYourFuture/JavaScript/blob/main/hand-in-assignments-guide.md#12-every-week `;