1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-04-26 22:09:55 +02:00

update dev dependencies and react to new linting rules (#611)

This commit is contained in:
eric sciple 2021-10-19 09:52:57 -05:00 committed by GitHub
parent c49af7ca1f
commit eb8a193c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 14807 additions and 4534 deletions

View file

@ -92,7 +92,10 @@ export async function getDefaultBranch(
assert.ok(result, 'default_branch cannot be empty')
} catch (err) {
// Handle .wiki repo
if (err['status'] === 404 && repo.toUpperCase().endsWith('.WIKI')) {
if (
(err as any)?.status === 404 &&
repo.toUpperCase().endsWith('.WIKI')
) {
result = 'master'
}
// Otherwise error