Skip to content

Commit 5e3d6af

Browse files
committed
fix the problem of static method
1 parent 45a2b0f commit 5e3d6af

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

config.xml

-2
This file was deleted.

src/main/java/io/jenkins/infra/repository_permissions_updater/github_team_sync/YamlTeamManager.java

-8
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ public class YamlTeamManager {
2525
private static final Path PERMISSIONS_PATH = Paths.get("permissions").toAbsolutePath().normalize();
2626
private static final Path TEAMS_PATH = Paths.get("teams").toAbsolutePath().normalize();
2727

28-
private static GitHubService gitHubService;
2928
private static Path resolvedPath;
3029
private static Map<String, Object> teamConfig;
3130

3231
public YamlTeamManager(GitHubService gitHubService, String filePath) throws IOException {
33-
YamlTeamManager.gitHubService = gitHubService;
3432
YamlTeamManager.resolvedPath = resolveFilePath(filePath);
3533
YamlTeamManager.teamConfig = loadYamlConfiguration(YamlTeamManager.resolvedPath);
3634
}
@@ -141,12 +139,6 @@ private static SpecialTeamDefinition parseTeamsTeamDefinition(Map<String, Object
141139
return new SpecialTeamDefinition(null, teamName, developers);
142140
}
143141

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-
150142
private static Set<String> extractDevelopers(Map<String, Object> teamConfig) {
151143
List<String> devsList = (List<String>) teamConfig.getOrDefault(
152144
"developers", new HashSet<>());

0 commit comments

Comments
 (0)