Skip to content

Commit

Permalink
chore: added ignore words to cspell
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Apr 17, 2024
1 parent 3bab31a commit 03fac6c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log"],
"useGitignore": true,
"language": "en",
"words": ["dataurl", "devpool", "outdir", "servedir", "ubiquibot", "tiktoken", "typebox"],
"words": ["dataurl", "devpool", "outdir", "servedir", "ubiquibot", "tiktoken", "typebox", "supabase", "wxdai", "noopener"],
"dictionaries": ["typescript", "node", "software-terms"],
"import": ["@cspell/dict-typescript/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-software-terms"],
"ignoreRegExpList": ["[0-9a-fA-F]{6}"]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Spell Check

on:
push:
pull_request:

jobs:
spellcheck:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { IssueParams, parseGitHubUrl } from "../start";
import { IssueParams, parseGitHubUrl } from "../src/start";

import ISSUE_CROSS_REPO_LINK from "./fixtures/issue-89.json"; // pr188 is linked to this issue
import ISSUE_SAME_REPO_LINK from "./fixtures/issue-90.json"; // pr91 is linked to this issue
import ISSUE_NO_LINK from "./fixtures/issue-92.json"; // no link
import ISSUE_CROSS_REPO_LINK from "../src/data-collection/fixtures/issue-89.json"; // pr188 is linked to this issue
import ISSUE_SAME_REPO_LINK from "../src/data-collection/fixtures/issue-90.json"; // pr91 is linked to this issue
import ISSUE_NO_LINK from "../src/data-collection/fixtures/issue-92.json"; // no link

import { collectLinkedMergedPulls, collectLinkedPulls } from "./collect-linked-pulls";
import PR_CROSS_REPO_LINK from "./fixtures/pr-188.json";
import PR_SAME_REPO_LINK from "./fixtures/pr-91.json";
import { collectLinkedMergedPulls, collectLinkedPulls } from "../src/data-collection/collect-linked-pulls";
import PR_CROSS_REPO_LINK from "../src/data-collection/fixtures/pr-188.json";
import PR_SAME_REPO_LINK from "../src/data-collection/fixtures/pr-91.json";

const PARAMS_ISSUE_CROSS_REPO_LINK: IssueParams = parseGitHubUrl(ISSUE_CROSS_REPO_LINK.html_url); // cross repo link
const PARAMS_ISSUE_SAME_REPO_LINK: IssueParams = parseGitHubUrl(ISSUE_SAME_REPO_LINK.html_url); // same repo link
Expand Down
6 changes: 3 additions & 3 deletions src/get-activity.test.ts → tests/get-activity.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IssueActivity } from "./issue-activity";
import { Processor } from "./parser/processor";
import { parseGitHubUrl } from "./start";
import { IssueActivity } from "../src/issue-activity";
import { Processor } from "../src/parser/processor";
import { parseGitHubUrl } from "../src/start";

// Mock process.argv
const issueUrl = process.env.TEST_ISSUE_URL || "https://github.com/ubiquibot/comment-incentives/issues/22";
Expand Down

0 comments on commit 03fac6c

Please sign in to comment.