We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mozilla-website-
1 parent ce935e9 commit 9a4b3b9Copy full SHA for 9a4b3b9
.github/workflows/classroom.yml
@@ -26,13 +26,13 @@ jobs:
26
REPO="${{ github.repository }}"
27
REPO="${REPO##*/}"
28
29
- # Strip trailing -<number> only
30
- STUDENT="$(echo "$REPO" | sed -E 's/-[0-9]+$//')"
+ # 1. Strip assignment prefix
+ STUDENT="${REPO#mozilla-website-}"
31
+
32
+ # 2. Strip trailing -<digits> if present
33
+ STUDENT="$(echo "$STUDENT" | sed -E 's/-[0-9]+$//')"
34
- COUNT=$(git log main --author="$STUDENT" --pretty=oneline | wc -l | tr -d ' ')
35
echo "Student: $STUDENT"
- echo "Commit count on main: $COUNT"
- [ "$COUNT" -ge 5 ]
36
timeout: 2
37
max-score: 10
38
- name: Autograding Reporter
0 commit comments