Skip to content
Snippets Groups Projects

Deploy fix

1 file
+ 11
1
Compare changes
  • Side-by-side
  • Inline
@@ -205,8 +205,18 @@ public class GitlabProjectService {
@@ -205,8 +205,18 @@ public class GitlabProjectService {
* @param projectIdOrPath the path or id of the project
* @param projectIdOrPath the path or id of the project
* @return a Project instance from the given path or id
* @return a Project instance from the given path or id
*/
*/
public Optional<Project> getProject(IdOrPath<?> projectIdOrPath) {
public Optional<Project> getProject(GitLabApi gitLabApi, IdOrPath<?> projectIdOrPath) {
return gitLabApi.getProjectApi().getOptionalProject(projectIdOrPath.value());
return gitLabApi.getProjectApi().getOptionalProject(projectIdOrPath.value());
}
}
 
/**
 
* Gets a project.
 
*
 
* @param projectIdOrPath the path or id of the project
 
* @return a Project instance from the given path or id
 
*/
 
public Optional<Project> getProject(IdOrPath<?> projectIdOrPath) {
 
return getProject(gitLabApi, projectIdOrPath);
 
}
 
}
}
Loading