This repository was archived by the owner on Nov 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 12 files changed +16
-24
lines changed
Expand file tree Collapse file tree 12 files changed +16
-24
lines changed Original file line number Diff line number Diff line change 5050 "types" : " ./dist/exports/dayjs.d.ts" ,
5151 "import" : " ./dist/exports/dayjs.mjs" ,
5252 "require" : " ./dist/exports/dayjs.cjs"
53- },
54- "./lodash" : {
55- "types" : " ./dist/exports/lodash.d.ts" ,
56- "import" : " ./dist/exports/lodash.mjs" ,
57- "require" : " ./dist/exports/lodash.cjs"
5853 }
5954 },
6055 "main" : " ./dist/index.mjs" ,
9186 "https-proxy-agent" : " ^7.0.6" ,
9287 "jsonwebtoken" : " ^9.0.2" ,
9388 "language-colors" : " ^2.1.55" ,
94- "lodash" : " npm:@candriajs/lodash@1.0.7" ,
9589 "markdown-it" : " ^14.1.0" ,
9690 "markdown-it-emoji" : " ^3.0.0" ,
91+ "radash" : " ^12.1.1" ,
9792 "simple-git" : " npm:@candriajs/simple-git@^1.0.2" ,
9893 "socks-proxy-agent" : " ^8.0.5" ,
9994 "uuid" : " ^11.1.0"
Original file line number Diff line number Diff line change 11import path from 'node:path'
22
3- import { isEmpty , isObject , isString } from 'lodash '
3+ import { isEmpty , isObject , isString } from 'radash '
44
55import {
66 exec ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import { capitalize , isEmpty } from 'lodash '
1+ import { capitalize , isEmpty } from 'radash '
22
33import {
44 FailedRevokeAppAccrssTokenMsg ,
Original file line number Diff line number Diff line change 1- import { capitalize , isEmpty } from 'lodash '
1+ import { capitalize , isEmpty } from 'radash '
22
33import {
44 CommitNotFoundMsg ,
Original file line number Diff line number Diff line change 1- import { isEmpty } from 'lodash '
1+ import { isEmpty } from 'radash '
22
33import {
44 FailedtoLockIssueMsg ,
Original file line number Diff line number Diff line change 1- import { isEmpty } from 'lodash '
1+ import { isEmpty } from 'radash '
22
33import {
44 FailedToRemoveOrgMemberMsg ,
Original file line number Diff line number Diff line change 1- import { isEmpty } from 'lodash '
1+ import { isEmpty } from 'radash '
22
33import {
44 ConflictPullRequestShaValueMsg ,
Original file line number Diff line number Diff line change 1- import { capitalize , isEmpty } from 'lodash '
1+ import { capitalize , isEmpty } from 'radash '
22
33import {
44 DeleteReleaseSuccessMsg ,
Original file line number Diff line number Diff line change 1- import { isEmpty } from 'lodash '
1+ import { isEmpty , tryit } from 'radash '
22
33import {
44 FailedToRemoveCollaboratorMsg ,
@@ -892,12 +892,13 @@ export class Repo extends GitHubClient {
892892 if ( ! options . owner || ! options . repo ) throw new Error ( MissingRepoOwnerOrNameMsg )
893893 try {
894894 const { owner, repo } = options
895+ const github_url = get_base_url ( this . type , { proxyType : ProxyType . Original } ) + '/' + owner + '/' + repo
895896 let default_branch
896- try {
897- const github_url = get_base_url ( this . type , { proxyType : ProxyType . Original } ) + '/' + owner + '/' + repo
898- default_branch = await get_remote_repo_default_branch ( github_url )
899- } catch ( error ) {
897+ const [ error , response ] = await tryit ( get_remote_repo_default_branch ) ( github_url )
898+ if ( error ) {
900899 default_branch = ( await this . get_repo_info ( { owner, repo } ) ) . data . default_branch
900+ } else {
901+ default_branch = response
901902 }
902903
903904 return default_branch
You can’t perform that action at this time.
0 commit comments