lint: rename project-level sync, fix imports
This commit is contained in:
parent
686cb834bc
commit
6a55a7534a
|
@ -17,5 +17,5 @@ export interface FlagLabel extends BaseLabel, ChangeSet
|
|||
|
||||
| Property | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| [requires](./cautious-journey.flaglabel.requires.md) | Array<unknown> | |
|
||||
| [requires](./cautious-journey.flaglabel.requires.md) | Array<LabelRef> | |
|
||||
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
requires: Array<unknown>;
|
||||
requires: Array<LabelRef>;
|
||||
```
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
| 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. |
|
||||
| [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. |
|
||||
| [syncLabels(options)](./cautious-journey.synclabels.md) | |
|
||||
| [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. |
|
||||
| [syncProjectLabels(options)](./cautious-journey.syncprojectlabels.md) | |
|
||||
|
||||
## Interfaces
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [cautious-journey](./cautious-journey.md) > [syncIssues](./cautious-journey.syncissues.md)
|
||||
[Home](./index.md) > [cautious-journey](./cautious-journey.md) > [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.
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [cautious-journey](./cautious-journey.md) > [syncLabels](./cautious-journey.synclabels.md)
|
||||
[Home](./index.md) > [cautious-journey](./cautious-journey.md) > [syncProjectLabels](./cautious-journey.syncprojectlabels.md)
|
||||
|
||||
## syncLabels() function
|
||||
## syncProjectLabels() function
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare function syncLabels(options: SyncOptions): Promise<unknown>;
|
||||
export declare function syncProjectLabels(options: SyncOptions): Promise<unknown>;
|
||||
```
|
||||
|
||||
## Parameters
|
|
@ -5,7 +5,7 @@ export { Remote, RemoteOptions } from './remote';
|
|||
export { GithubRemote } from './remote/github';
|
||||
export { GitlabRemote } from './remote/gitlab';
|
||||
export { ResolveInput, ResolveResult, resolveLabels } from './resolve';
|
||||
export { syncIssueLabels as syncIssues, syncLabels, SyncOptions } from './sync';
|
||||
export { syncIssueLabels, SyncOptions, syncProjectLabels } from './sync';
|
||||
|
||||
const STATUS_ERROR = 1;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { ConfigData } from './config';
|
|||
import { Commands, createParser } from './config/args';
|
||||
import { BunyanLogger } from './logger/bunyan';
|
||||
import { GithubRemote } from './remote/github';
|
||||
import { syncIssueLabels, syncLabels, SyncOptions } from './sync';
|
||||
import { syncIssueLabels, SyncOptions, syncProjectLabels } from './sync';
|
||||
import { VERSION_INFO } from './version';
|
||||
|
||||
export { FlagLabel, StateLabel } from './labels';
|
||||
|
@ -17,7 +17,7 @@ export { Remote, RemoteOptions } from './remote';
|
|||
export { GithubRemote } from './remote/github';
|
||||
export { GitlabRemote } from './remote/gitlab';
|
||||
export { resolveLabels } from './resolve';
|
||||
export { syncIssueLabels as syncIssues, syncLabels } from './sync';
|
||||
export { syncIssueLabels, syncProjectLabels } from './sync';
|
||||
|
||||
const SLICE_ARGS = 2;
|
||||
|
||||
|
@ -89,7 +89,7 @@ export async function main(argv: Array<string>): Promise<number> {
|
|||
await syncIssueLabels(options);
|
||||
break;
|
||||
case Commands.LABELS:
|
||||
await syncLabels(options);
|
||||
await syncProjectLabels(options);
|
||||
break;
|
||||
default:
|
||||
throw new InvalidArgumentError('unknown command');
|
||||
|
|
|
@ -58,7 +58,7 @@ export async function syncIssueLabels(options: SyncOptions): Promise<unknown> {
|
|||
return undefined;
|
||||
}
|
||||
|
||||
export async function syncLabels(options: SyncOptions): Promise<unknown> {
|
||||
export async function syncProjectLabels(options: SyncOptions): Promise<unknown> {
|
||||
const labels = await options.remote.listLabels({
|
||||
project: options.project,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue