Skip to content

Commit

Permalink
Spell out allowed branch names in warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
remarcmij committed Oct 13, 2024
1 parent 5753532 commit 1a8a208
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions test-runner/compliance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
`;
Expand Down

0 comments on commit 1a8a208

Please sign in to comment.