Class StaffTeamGithubSync
java.lang.Object
edu.ucsb.cs156.frontiers.jobs.StaffTeamGithubSync
Puts the course staff on the GitHub team of a staff team (see
).
Shared by the jobs that push teams to GitHub, so that a staff team is handled the same way
whether it was just created or is being pushed with all of the other teams.
invalid reference
Team#getIsStaffTeam()
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddStaffMembers(edu.ucsb.cs156.jobs.services.JobContext ctx, Course course, Team team, Integer orgId, GithubTeamService githubTeamService) Adds every member of the course staff who has a GitHub login to the team's GitHub team, as a member, unless they are already on it.
-
Method Details
-
addStaffMembers
public static void addStaffMembers(edu.ucsb.cs156.jobs.services.JobContext ctx, Course course, Team team, Integer orgId, GithubTeamService githubTeamService) Adds every member of the course staff who has a GitHub login to the team's GitHub team, as a member, unless they are already on it. A staff member without a GitHub login, and a staff member GitHub refuses, are logged and skipped; nothing is stored in Frontiers, since staff members have no team member records.- Parameters:
ctx- the job context, for loggingcourse- the course; its staff are the members of the teamteam- the staff team, which must already have a GitHub team idorgId- the GitHub id of the course's organizationgithubTeamService- the service that talks to GitHub
-