提交 aacf23e7 编写于 作者: T Tomas Vik

refactor(git service): fetch last pipeline method can be private

After implementing detached pipelines, this method is only used within
the gitlab_service module.
上级 35ca9e6d
......@@ -202,7 +202,7 @@ export async function getAllGitlabProjects(): Promise<VsProject[]> {
return Promise.all(projectsWithUri);
}
export async function fetchLastPipelineForCurrentBranch(
async function fetchLastPipelineForCurrentBranch(
workspaceFolder: string,
): Promise<RestPipeline | null> {
const project = await fetchCurrentPipelineProject(workspaceFolder);
......
......@@ -113,7 +113,6 @@ describe('status_bar', () => {
gitLabService.fetchCurrentPipelineProject.mockReturnValue(project);
// FIXME: why is closing issue fetched from normal remote and pipeline result from pipeline remote?
gitLabService.fetchCurrentProject.mockReturnValue(project);
gitLabService.fetchLastPipelineForCurrentBranch.mockReturnValue(null);
});
afterEach(() => {
......@@ -154,7 +153,6 @@ describe('status_bar', () => {
gitLabService.fetchCurrentPipelineProject.mockReturnValue(project);
// FIXME: why is closing issue fetched from normal remote and pipeline result from pipeline remote?
gitLabService.fetchCurrentProject.mockReturnValue(project);
gitLabService.fetchLastPipelineForCurrentBranch.mockReturnValue(null);
});
afterEach(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册