mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-05-14 02:22:41 +00:00
fix: add type annotation to fix TS2345 error in integration test
The credentialIncludes array was missing a type annotation, causing TypeScript to infer it as never[] and reject string pushes.
This commit is contained in:
@@ -82,7 +82,7 @@ describe('git-config-helper integration tests', () => {
|
||||
const includeIfKeysAfter = await git.tryGetConfigKeys(
|
||||
'^includeIf\\.gitdir:'
|
||||
)
|
||||
const credentialIncludes = []
|
||||
const credentialIncludes: string[] = []
|
||||
for (const key of includeIfKeysAfter) {
|
||||
const values = await git.tryGetConfigValues(key)
|
||||
for (const value of values) {
|
||||
|
||||
Reference in New Issue
Block a user