Skip to content

Commit de62867

Browse files
authored
Fix Not Coursework error (#64)
Trainee tracker is erroring right now because of CodeYourFuture/Module-Onboarding#1209 I think it correctly checks for not a coursework in PRs, but it is not checking for Not a Coursework in issues
1 parent 0c5ed2c commit de62867

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/course.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ fn parse_issue(issue: &Issue) -> Result<Option<(NonZeroUsize, Assignment)>, Erro
149149
let mut optionality = None;
150150

151151
for label in labels {
152+
if label.name == "NotCoursework" {
153+
return Ok(None);
154+
}
152155
if let Some(sprint_number) = label.name.strip_prefix("📅 Sprint ") {
153156
match NonZeroUsize::from_str(sprint_number) {
154157
Ok(sprint_number) => {

0 commit comments

Comments
 (0)