Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass showProgress to fetchOptions #1454

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion dist/index.js
Expand Up @@ -1243,7 +1243,9 @@ function getSource(settings) {
}
// Fetch
core.startGroup('Fetching the repository');
const fetchOptions = {};
const fetchOptions = {
showProgress: settings.showProgress
};
if (settings.filter) {
fetchOptions.filter = settings.filter;
}
Expand Down
4 changes: 2 additions & 2 deletions src/git-command-manager.ts
Expand Up @@ -34,7 +34,7 @@ export interface IGitCommandManager {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
showProgress: boolean
}
): Promise<void>
getDefaultBranch(repositoryUrl: string): Promise<string>
Expand Down Expand Up @@ -246,7 +246,7 @@ class GitCommandManager {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
showProgress: boolean
}
): Promise<void> {
const args = ['-c', 'protocol.version=2', 'fetch']
Expand Down
6 changes: 4 additions & 2 deletions src/git-source-provider.ts
Expand Up @@ -157,8 +157,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
} = {}
showProgress: boolean
} = {
showProgress: settings.showProgress
}

if (settings.filter) {
fetchOptions.filter = settings.filter
Expand Down