Skip to content

Commit

Permalink
Update duolingo pre-commit hook to 1.8.0 (TOOLS-581) (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
artnc authored Dec 10, 2024
1 parent d534687 commit dace756
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
language: system
files: ^src/*
- repo: https://github.com/duolingo/pre-commit-hooks.git
rev: 1.7.0
rev: 1.8.0
hooks:
- id: duolingo
exclude: config.yaml
8 changes: 3 additions & 5 deletions src/engines/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,9 @@ const engine: Engine = {
snippet: item.body
? `<blockquote>${marked(item.body)}</blockquote>`
: undefined,
title: `${
item.pull_request ? "PR" : "Issue"
} in ${item.html_url.match(
/github\.com\/([^\/]+\/[^\/]+)\//,
)?.[1]}: ${item.title}`,
title: `${item.pull_request ? "PR" : "Issue"} in ${
item.html_url.match(/github\.com\/([^\/]+\/[^\/]+)\//)?.[1]
}: ${item.title}`,
url: item.html_url,
}));
} catch {
Expand Down
6 changes: 3 additions & 3 deletions src/engines/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const engine: Engine = {
.map(g => ({
snippet: g.description ?? undefined,
title: `${g.name}: ${g.email}`,
url: `https://groups.google.com/a/${domain}/forum/#!members/${g.email?.split(
"@",
)[0]}`,
url: `https://groups.google.com/a/${domain}/forum/#!members/${
g.email?.split("@")[0]
}`,
}));
},
};
Expand Down

0 comments on commit dace756

Please sign in to comment.