Class StaffTeamGithubSync

java.lang.Object
edu.ucsb.cs156.frontiers.jobs.StaffTeamGithubSync

public final class StaffTeamGithubSync extends Object
Puts the course staff on the GitHub team of a staff team (see
invalid reference
Team#getIsStaffTeam()
). 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.
  • 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 logging
      course - the course; its staff are the members of the team
      team - the staff team, which must already have a GitHub team id
      orgId - the GitHub id of the course's organization
      githubTeamService - the service that talks to GitHub