fix: swap out deprecated helper
This commit is contained in:
parent
0fe105102f
commit
f00778709c
|
@ -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;
|
||||||
```
|
```
|
||||||
|
|
|
@ -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<Octokit, [RemoteOptions](./cautious-journey.remoteoptions.md)<!-- -->>
|
<b>Extends:</b> BaseRemote<Octokit, [RemoteOptions](./cautious-journey.remoteoptions.md)
|
||||||
|
|
||||||
<b>Implements:</b> [Remote](./cautious-journey.remote.md)
|
<b>Implements:</b> [Remote](./cautious-journey.remote.md)
|
||||||
|
|
||||||
|
|
|
@ -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<GitlabType, [RemoteOptions](./cautious-journey.remoteoptions.md)<!-- -->>
|
<b>Extends:</b> BaseRemote<GitlabType, [RemoteOptions](./cautious-journey.remoteoptions.md)
|
||||||
|
|
||||||
<b>Implements:</b> [Remote](./cautious-journey.remote.md)
|
<b>Implements:</b> [Remote](./cautious-journey.remote.md)
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue