CodeYourFuture / CodeYourFuture/trainee-tracker
PR metadata validation: Ensure "Complete" was added by a mentor not a trainee
- Vorherrschende Sprache
- Rust
- Sterne
- 0
- Forks
- 0
- Ø Merge
- 20 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit src/bin/pr-metadata-validator.rs und verfolge, wie Ereignisse zu Label-Änderungen verarbeitet werden. Prüfe die verknüpften Informationen zur Teammitgliedschaft von Mentors und ermittle, wie transitive Mitgliedschaft überprüft werden kann. Als abgeschlossen gilt, dass das Hinzufügen des Labels Complete durch einen Trainee dazu führt, dass es mit einem Kommentar entfernt wird, während das Hinzufügen durch einen Mentor bestehen bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- authorization
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100