1
0
Fork 0

fix: swap out deprecated helper

This commit is contained in:
Sean Sube 2022-11-22 08:25:48 -06:00 committed by supreme-lamp[bot]
parent 0fe105102f
commit f00778709c
4 changed files with 6 additions and 6 deletions

View File

@ -9,5 +9,5 @@ Individual labels: the equivalent of a checkbox.
<b>Signature:</b> <b>Signature:</b>
```typescript ```typescript
export declare type FlagLabel = BaseLabel; export type FlagLabel = BaseLabel;
``` ```

View File

@ -11,7 +11,7 @@ Github/Octokit API implementation of the `Remote` contract.
```typescript ```typescript
export declare class GithubRemote extends BaseRemote<Octokit, RemoteOptions> implements Remote export declare class GithubRemote extends BaseRemote<Octokit, RemoteOptions> implements Remote
``` ```
<b>Extends:</b> BaseRemote&lt;Octokit, [RemoteOptions](./cautious-journey.remoteoptions.md)<!-- -->&gt; <b>Extends:</b> BaseRemote&lt;Octokit, [RemoteOptions](./cautious-journey.remoteoptions.md)
<b>Implements:</b> [Remote](./cautious-journey.remote.md) <b>Implements:</b> [Remote](./cautious-journey.remote.md)

View File

@ -11,7 +11,7 @@ Gitlab API implementation of the `Remote` contract.
```typescript ```typescript
export declare class GitlabRemote extends BaseRemote<GitlabType, RemoteOptions> implements Remote export declare class GitlabRemote extends BaseRemote<GitlabType, RemoteOptions> implements Remote
``` ```
<b>Extends:</b> BaseRemote&lt;GitlabType, [RemoteOptions](./cautious-journey.remoteoptions.md)<!-- -->&gt; <b>Extends:</b> BaseRemote&lt;GitlabType, [RemoteOptions](./cautious-journey.remoteoptions.md)
<b>Implements:</b> [Remote](./cautious-journey.remote.md) <b>Implements:</b> [Remote](./cautious-journey.remote.md)

View File

@ -1,4 +1,4 @@
import { doesExist, InvalidArgumentError, mustCoalesce, mustExist } from '@apextoaster/js-utils'; import { doesExist, InvalidArgumentError, mustDefault, mustExist } from '@apextoaster/js-utils';
import { createAppAuth } from '@octokit/auth-app'; import { createAppAuth } from '@octokit/auth-app';
import { Octokit } from '@octokit/rest'; import { Octokit } from '@octokit/rest';
@ -145,7 +145,7 @@ export class GithubRemote extends BaseRemote<Octokit, RemoteOptions> implements
for (const label of repo.data) { for (const label of repo.data) {
labels.push({ labels.push({
color: label.color, color: label.color,
desc: mustCoalesce(label.description, ''), desc: mustDefault(label.description, ''),
name: label.name, name: label.name,
project: options.project, project: options.project,
}); });
@ -186,7 +186,7 @@ export class GithubRemote extends BaseRemote<Octokit, RemoteOptions> implements
return { return {
color: data.data.color, color: data.data.color,
desc: mustCoalesce(data.data.description, ''), desc: mustDefault(data.data.description, ''),
name: data.data.name, name: data.data.name,
project: options.project, project: options.project,
}; };