Skip to content

Commit

Permalink
incremental build
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesacklin committed Jun 9, 2023
1 parent d99db27 commit 3e76cb6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
11 changes: 2 additions & 9 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions src/Linear.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { LinearClient } from "@linear/sdk";
import { loadFront } from "yaml-front-matter";

// eslint-disable-next-line node/no-missing-import
import { IssueCreateInput } from "@linear/sdk/dist/_generated_documents";
Expand All @@ -21,15 +20,11 @@ export class Linear {
constructor(
private apiKey: string,
private teamId: string,
private stateId: string,
public isDryrun: boolean = false
private stateId: string
) {
this.client = new LinearClient({ apiKey });
}

/**
* create task for check renovate.
*/
async createIssue(issueData?: IssueData) {
let inputIssueData = issueData;
if (inputIssueData === undefined) {
Expand All @@ -46,9 +41,6 @@ export class Linear {
...inputIssueData,
};

if (this.isDryrun) {
return issueCreateInput;
}
return this.client.issueCreate(issueCreateInput);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main(
throw new UndefinedError("stateId");
}

const client = new Linear(apiKey, teamId, stateId, false);
const client = new Linear(apiKey, teamId, stateId);

info(`--- create issue ---`);
const data = issueContent;
Expand Down

0 comments on commit 3e76cb6

Please sign in to comment.