@@ -25,12 +25,10 @@ public class YamlTeamManager {
25
25
private static final Path PERMISSIONS_PATH = Paths .get ("permissions" ).toAbsolutePath ().normalize ();
26
26
private static final Path TEAMS_PATH = Paths .get ("teams" ).toAbsolutePath ().normalize ();
27
27
28
- private static GitHubService gitHubService ;
29
28
private static Path resolvedPath ;
30
29
private static Map <String , Object > teamConfig ;
31
30
32
31
public YamlTeamManager (GitHubService gitHubService , String filePath ) throws IOException {
33
- YamlTeamManager .gitHubService = gitHubService ;
34
32
YamlTeamManager .resolvedPath = resolveFilePath (filePath );
35
33
YamlTeamManager .teamConfig = loadYamlConfiguration (YamlTeamManager .resolvedPath );
36
34
}
@@ -141,12 +139,6 @@ private static SpecialTeamDefinition parseTeamsTeamDefinition(Map<String, Object
141
139
return new SpecialTeamDefinition (null , teamName , developers );
142
140
}
143
141
144
- public static String resolveTeamName (String orgName , String repoName ) throws IOException {
145
- String potentialTeamName = repoName + " Developers" ;
146
- GHTeam team = gitHubService .getTeamFromRepo (orgName , repoName , potentialTeamName );
147
- return team != null ? team .getName () : null ;
148
- }
149
-
150
142
private static Set <String > extractDevelopers (Map <String , Object > teamConfig ) {
151
143
List <String > devsList = (List <String >) teamConfig .getOrDefault (
152
144
"developers" , new HashSet <>());
0 commit comments