mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-22 09:32:03 +03:00
update dev dependencies and react to new linting rules
This commit is contained in:
parent
1e204e9a92
commit
7b32c07aeb
13 changed files with 14797 additions and 4526 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue