You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Issue created by other users causes PR metadata validation to fail #66
When a trainee performed an action on a PR that triggered the metadata validation, the validation failed.
What I expected: The metadata validation failed because the trainee did something that invalidated their PR.
What actually happened: The metadata validation failed because of an issue created by another user on CYF's repo.
This happened on Module-Structuring-and-Testing-Data. The validation failed because the issue created by a staff member didn't have a "Sprint" label (but it has "NotCoursework", "bug", and "Module Structuring-and-Testing-Data" labels).
thread 'main' (2534) panicked at src/bin/pr-metadata-validator.rs:64:6:
Failed to validate PR: UserFacing("Failed to parse issue https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/issues/1246 - no submit label.\n\nIf this issue was made my a curriculum team member it should be given a sprint label.\nIf this issue was created by a trainee for step submission, it should probably be closed (and they should create the issue in their fork).")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Process completed with exit code 101.
After I added a "Sprint" label to the issue, and did something in the PR to trigger validation, the validation passed.
Note: A few incidents like this happened in Module-Onboarding when some trainees mistakenly created their "Step 1" issue on CYF's repo instead of on their own account.
Steps to reproduce
Create an issue without any label on Module-Structuring-and-Testing-Data repo
Activity