Skip to content

Commit 89bdeb7

Browse files
authored
regenerate
1 parent 3ce7f60 commit 89bdeb7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+16881
-16704
lines changed

dist/index.js

+13,599-13,463
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sourcemap-register.js

+2,845-2,847
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
"format": "prettier --write **/*.ts",
1212
"format-check": "prettier --check **/*.ts",
1313
"lint": "eslint src/**/*.ts",
14+
"lint-fix": "eslint src/**/*.ts --fix",
1415
"package": "ncc build --source-map --license licenses.txt",
1516
"test": "jest",
16-
"all": "yarn run build && yarn run format && yarn run lint && yarn run package && yarn test",
17+
"all": "yarn run build && yarn run format && yarn run package && yarn test",
1718
"generate-json-schema": "node ./scripts/generate-json-schema.js"
1819
},
1920
"repository": {
@@ -44,6 +45,7 @@
4445
"eslint": "^7.8.1",
4546
"eslint-plugin-github": "^4.1.1",
4647
"eslint-plugin-jest": "^24.1.0",
48+
"eslint-plugin-prettier": "^3.3.0",
4749
"jest": "^24.9.0",
4850
"jest-circus": "^26.6.3",
4951
"js-yaml": "^3.14.0",

src/config.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ const getWorkspacePath = (configFilePath: string) => {
1717
console.log(`join the workspace path`);
1818

1919
return path.join(rootPath, configFilePath);
20-
}
20+
};
2121

2222
export const getConfigs = (configFilePath: string): IConfig[] => {
23-
const configPath = getWorkspacePath(configFilePath) ?? path.join(PROJECT_ROOT, configFilePath);
23+
const configPath =
24+
getWorkspacePath(configFilePath) ?? path.join(PROJECT_ROOT, configFilePath);
2425

2526
console.log(`config path: "${configPath}"`);
2627

src/errors/AuthorizationError.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
export class AuthorizationError extends Error {}

src/interfaces/ICardWithIssue.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { TColumnTypes } from './TColumnTypes';
33
import { TRepoIssue } from './TRepoIssue';
44

55
export interface ICardWithIssue {
6-
column: TColumnTypes;
7-
issue?: TRepoIssue;
8-
card: TColumnCard;
9-
isNew: boolean;
10-
}
6+
column: TColumnTypes;
7+
issue?: TRepoIssue;
8+
card: TColumnCard;
9+
isNew: boolean;
10+
}

src/interfaces/IConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ export interface IConfig {
5959
/**
6060
* Used by `vscode` in JSON files.
6161
*/
62-
['$schema']?: string,
62+
['$schema']?: string;
6363
}

src/interfaces/IIssueState.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export enum IIssueState {
2-
Open = 'open',
3-
Closed = 'closed',
2+
Open = 'open',
3+
Closed = 'closed',
44
}

src/interfaces/IParsedFileUrl.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface IParsedFileUrl {
2-
owner: string;
3-
repo: string;
4-
path: string;
5-
}
2+
owner: string;
3+
repo: string;
4+
path: string;
5+
}

src/interfaces/IParsedRepo.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export interface IParsedRepo {
2-
owner: string;
3-
repo: string;
2+
owner: string;
3+
repo: string;
44
}

src/interfaces/IProjectData.ts

-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ export interface IProjectData {
1717
waitingToDeployIssues: ICardWithIssue[];
1818
doneIssues: ICardWithIssue[];
1919
}
20-
21-

src/interfaces/IProjectStats.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IDeveloperWithIssuesCount } from "./IDeveloperWithIssuesCount";
1+
import { IDeveloperWithIssuesCount } from './IDeveloperWithIssuesCount'
22

33
export interface IProjectStats {
44
doneRate: number;

src/interfaces/IWrappedIssue.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { TColumnTypes } from './TColumnTypes';
22
import { TRepoIssue } from './TRepoIssue';
33

44
export interface IWrappedIssue {
5-
column: TColumnTypes;
6-
issue: TRepoIssue;
5+
column: TColumnTypes;
6+
issue: TRepoIssue;
77
}

src/interfaces/TArraySortResult.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export enum TArraySortResult {
22
FirstEarlier = -1,
33
SecondEarlier = 0,
4-
Equal = 0
4+
Equal = 0,
55
}
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { ThenArg } from './ThenArg';
22
import { TGitHub } from './TGitHub';
33

4-
export type TColumnCardsResponse = ThenArg<ReturnType<TGitHub['projects']['listCards']>>;
4+
export type TColumnCardsResponse = ThenArg<
5+
ReturnType<TGitHub['projects']['listCards']>
6+
>

src/interfaces/TColumnTypes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export enum TColumnTypes {
66
InReview = 'In review',
77
WaitingToDeploy = 'Waiting to deploy',
88
Done = 'Done',
9-
};
9+
}

src/interfaces/TGitHub.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { GitHub } from '@actions/github/lib/utils';
22

33

4-
export type TGitHub = InstanceType<(typeof GitHub)>;
4+
export type TGitHub = InstanceType<typeof GitHub>;
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { ThenArg } from './ThenArg';
22
import { TGitHub } from './TGitHub';
33

4-
export type TProjectColumnsResponse = ThenArg<ReturnType<TGitHub['projects']['listColumns']>>;
4+
export type TProjectColumnsResponse = ThenArg<
5+
ReturnType<TGitHub['projects']['listColumns']>
6+
>

src/interfaces/TProjectsResponse.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { ThenArg } from './ThenArg';
22
import { TGitHub } from './TGitHub';
33

4-
export type TProjectResponse = ThenArg<ReturnType<TGitHub['projects']['listForRepo']>>;
4+
export type TProjectResponse = ThenArg<
5+
ReturnType<TGitHub['projects']['listForRepo']>
6+
>

src/interfaces/TProjetConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { IProject } from './IProject';
22

3-
export type TProjectConfig = IProject | number;
3+
export type TProjectConfig = IProject | number;

src/interfaces/TRepoIssue.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { ThenArg } from './ThenArg';
22
import { TGitHub } from './TGitHub';
33

4-
export type TRepoIssuesResponse = ThenArg<ReturnType<TGitHub['issues']['listForRepo']>>;
4+
export type TRepoIssuesResponse = ThenArg<
5+
ReturnType<TGitHub['issues']['listForRepo']>
6+
>
57
export type TRepoIssuesPaginatedResponse = TRepoIssuesResponse['data'];
68
export type TRepoIssue = TRepoIssuesPaginatedResponse[0];

src/main.ts

+12-8
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ const updateBoardComment = async (
132132
// return await overwriteBoardIssue(issueContents, config, projectKit);
133133
// }
134134

135-
console.log(`>> updating the comment ${commentUrl} with contents length: ${issueContents.length}`);
135+
console.log(
136+
`>> updating the comment ${commentUrl} with contents length: ${issueContents.length}`,
137+
);
136138

137139
return await projectKit.updateBoardComment(commentUrl, issueContents);
138140
};
@@ -161,11 +163,11 @@ const processConfigRecordComment = async (
161163
const projectsWithData = [];
162164
for (let { repo, projects } of repoProjects) {
163165
for (let project of projects) {
164-
console.log(`- Getting Project data for ${project.project.name}.`);
165-
projectsWithData.push({
166-
project,
167-
data: await getProjectData(readProjectKit, config, project),
168-
});
166+
console.log(`- Getting Project data for ${project.project.name}.`);
167+
projectsWithData.push({
168+
project,
169+
data: await getProjectData(readProjectKit, config, project),
170+
});
169171
}
170172

171173
for (let { project, data } of projectsWithData) {
@@ -188,8 +190,10 @@ const processConfigRecordComment = async (
188190
async function run(): Promise<void> {
189191
try {
190192
const token = core.getInput('token');
191-
const readToken = env(TOKEN_READ_NAME) ?? core.getInput('readToken') ?? token;
192-
const writeToken = env(TOKEN_WRITE_NAME) ?? core.getInput('writeToken') ?? token;
193+
const readToken =
194+
env(TOKEN_READ_NAME) ?? core.getInput('readToken') ?? token;
195+
const writeToken =
196+
env(TOKEN_WRITE_NAME) ?? core.getInput('writeToken') ?? token;
193197

194198
if (!readToken) {
195199
throw new AuthorizationError('No read token found.');

0 commit comments

Comments
 (0)