CodeYourFuture / CodeYourFuture/trainee-tracker
PR metadata validation: Ensure "Complete" was added by a mentor not a trainee
Open
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 20m
- Merged PRs (30d)
- 2
Description
Every now and then a trainee adds the "Complete" label themselves.
This can't be prevented by permissions on GitHub - labels are all or nothing.
But the [PR Metadata Validator](https://github.com/CodeYourFuture/trainee-tracker/blob/main/src/bin/pr-metadata-validator.rs) runs on every label change. We could in theory, when "Complete" is added, check if the user who took the action is (transitively) in [the "Mentors" team](https://github.com/orgs/CodeYourFuture/teams/mentors), and remove the label (with a comment) if they're not.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.