1
0
Fork 0

lint: rename project-level sync, fix imports

This commit is contained in:
ssube 2020-08-15 16:41:48 -05:00 committed by Sean Sube
parent 686cb834bc
commit 6a55a7534a
8 changed files with 14 additions and 14 deletions

View File

@ -17,5 +17,5 @@ export interface FlagLabel extends BaseLabel, ChangeSet
| Property | Type | Description | | Property | Type | Description |
| --- | --- | --- | | --- | --- | --- |
| [requires](./cautious-journey.flaglabel.requires.md) | Array<unknown> | | | [requires](./cautious-journey.flaglabel.requires.md) | Array<LabelRef> | |

View File

@ -7,5 +7,5 @@
<b>Signature:</b> <b>Signature:</b>
```typescript ```typescript
requires: Array<unknown>; requires: Array<LabelRef>;
``` ```

View File

@ -16,8 +16,8 @@
| Function | Description | | Function | Description |
| --- | --- | | --- | --- |
| [resolveLabels(options)](./cautious-journey.resolvelabels.md) | Resolve the desired set of labels, given a starting set and the flags/states to be applied. | | [resolveLabels(options)](./cautious-journey.resolvelabels.md) | Resolve the desired set of labels, given a starting set and the flags/states to be applied. |
| [syncIssues(options)](./cautious-journey.syncissues.md) | goes through and resolves each issue in the project. if there are changes and no errors, then updates the issue. | | [syncIssueLabels(options)](./cautious-journey.syncissuelabels.md) | goes through and resolves each issue in the project. if there are changes and no errors, then updates the issue. |
| [syncLabels(options)](./cautious-journey.synclabels.md) | | | [syncProjectLabels(options)](./cautious-journey.syncprojectlabels.md) | |
## Interfaces ## Interfaces

View File

@ -1,8 +1,8 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. --> <!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [cautious-journey](./cautious-journey.md) &gt; [syncIssues](./cautious-journey.syncissues.md) [Home](./index.md) &gt; [cautious-journey](./cautious-journey.md) &gt; [syncIssueLabels](./cautious-journey.syncissuelabels.md)
## syncIssues() function ## syncIssueLabels() function
goes through and resolves each issue in the project. if there are changes and no errors, then updates the issue. goes through and resolves each issue in the project. if there are changes and no errors, then updates the issue.

View File

@ -1,13 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. --> <!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [cautious-journey](./cautious-journey.md) &gt; [syncLabels](./cautious-journey.synclabels.md) [Home](./index.md) &gt; [cautious-journey](./cautious-journey.md) &gt; [syncProjectLabels](./cautious-journey.syncprojectlabels.md)
## syncLabels() function ## syncProjectLabels() function
<b>Signature:</b> <b>Signature:</b>
```typescript ```typescript
export declare function syncLabels(options: SyncOptions): Promise<unknown>; export declare function syncProjectLabels(options: SyncOptions): Promise<unknown>;
``` ```
## Parameters ## Parameters

View File

@ -5,7 +5,7 @@ export { Remote, RemoteOptions } from './remote';
export { GithubRemote } from './remote/github'; export { GithubRemote } from './remote/github';
export { GitlabRemote } from './remote/gitlab'; export { GitlabRemote } from './remote/gitlab';
export { ResolveInput, ResolveResult, resolveLabels } from './resolve'; export { ResolveInput, ResolveResult, resolveLabels } from './resolve';
export { syncIssueLabels as syncIssues, syncLabels, SyncOptions } from './sync'; export { syncIssueLabels, SyncOptions, syncProjectLabels } from './sync';
const STATUS_ERROR = 1; const STATUS_ERROR = 1;

View File

@ -9,7 +9,7 @@ import { ConfigData } from './config';
import { Commands, createParser } from './config/args'; import { Commands, createParser } from './config/args';
import { BunyanLogger } from './logger/bunyan'; import { BunyanLogger } from './logger/bunyan';
import { GithubRemote } from './remote/github'; import { GithubRemote } from './remote/github';
import { syncIssueLabels, syncLabels, SyncOptions } from './sync'; import { syncIssueLabels, SyncOptions, syncProjectLabels } from './sync';
import { VERSION_INFO } from './version'; import { VERSION_INFO } from './version';
export { FlagLabel, StateLabel } from './labels'; export { FlagLabel, StateLabel } from './labels';
@ -17,7 +17,7 @@ export { Remote, RemoteOptions } from './remote';
export { GithubRemote } from './remote/github'; export { GithubRemote } from './remote/github';
export { GitlabRemote } from './remote/gitlab'; export { GitlabRemote } from './remote/gitlab';
export { resolveLabels } from './resolve'; export { resolveLabels } from './resolve';
export { syncIssueLabels as syncIssues, syncLabels } from './sync'; export { syncIssueLabels, syncProjectLabels } from './sync';
const SLICE_ARGS = 2; const SLICE_ARGS = 2;
@ -89,7 +89,7 @@ export async function main(argv: Array<string>): Promise<number> {
await syncIssueLabels(options); await syncIssueLabels(options);
break; break;
case Commands.LABELS: case Commands.LABELS:
await syncLabels(options); await syncProjectLabels(options);
break; break;
default: default:
throw new InvalidArgumentError('unknown command'); throw new InvalidArgumentError('unknown command');

View File

@ -58,7 +58,7 @@ export async function syncIssueLabels(options: SyncOptions): Promise<unknown> {
return undefined; return undefined;
} }
export async function syncLabels(options: SyncOptions): Promise<unknown> { export async function syncProjectLabels(options: SyncOptions): Promise<unknown> {
const labels = await options.remote.listLabels({ const labels = await options.remote.listLabels({
project: options.project, project: options.project,
}); });