Skip to content

Commit 3aa2220

Browse files
committed
- Fixed a minor error in the obsidian style checker that prevented it from running.
1 parent 4e7d94e commit 3aa2220

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • Dev Tools/obsidian-style-checker

Dev Tools/obsidian-style-checker/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { parseArgs } from "node:util";
2222
const config = parseConfig();
2323
const repoRoot = runCommand("git", ["rev-parse", "--show-toplevel"]).trim();
2424

25+
initializeAsana();
2526
main();
2627

2728
/**
@@ -288,8 +289,8 @@ async function createAsanaTask(changedFiles, to) {
288289
workspace: config.asanaWorkspace,
289290
memberships: [
290291
{
291-
project: asanaProjectGid,
292-
section: asanaSectionGid
292+
project: config.asanaProject,
293+
section: config.asanaSection
293294
}
294295
]
295296
},
@@ -336,7 +337,7 @@ async function processCommit(from, to) {
336337
if (reportFiles.length > 0) {
337338
if (config.asana) {
338339
try {
339-
await createAsanaTask(reportFiles);
340+
await createAsanaTask(reportFiles, to);
340341
}
341342
catch (error) {
342343
console.error("Error creating Asana task:", error.message);

0 commit comments

Comments
 (0)