Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show misspellings in workflow summary #78

Merged
merged 7 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
-
name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
-
name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -43,6 +45,28 @@ jobs:
-
name: Search for misspellings
uses: crate-ci/typos@master
-
name: Install Hunspell
run: sudo -- apt-get install -y hunspell gettext
-
name: Checkout dictionaries
uses: actions/checkout@v4
with:
repository: LibreOffice/dictionaries
path: libreoffice-dictionaries
-
name: Display misspellings in summary
run: |
{
echo '```'
git diff HEAD^ -- 'src/hu/' 'src/_data/*.json' ':!:*.png' \
| sed -e '/^diff --git/,/^@@ /d' \
| sed -ne 's#^+\(.\+\)#\1#p' \
| hunspell -d ./libreoffice-dictionaries/hu_HU/hu_HU -p hunspell.txt -l \
| sort -f \
| uniq -i
Comment on lines +63 to +67
Copy link
Contributor Author

@szepeviktor szepeviktor Jun 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mi van az utolsó commit-ban a magyar cikkekben, de nem a PNG-kben
    | ne mutasd a diff-ekben a fájlneveket
    | csak a hozzáadott sorokat mutasd
    | nem ismert magyar szavak
    | sorba rendezés kis-nagybetűkre való tekintet nélkül
    | minden szót csak 1× mutass

echo '```'
} >>"${GITHUB_STEP_SUMMARY}"

lint_links:
name: Lint Links
Expand Down
45 changes: 45 additions & 0 deletions hunspell.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
adamlaki
admin
caption
class
CMS
CRM
css
date
define
description
div
href
html
icon
image
img
initial
js
Laravel
li
mode
open-source
permalink
php
public
querySelector
Rocket
section
SimplePay
spam
src
staging
strong
style
tags
td
the
thumbnail
thumbnailAlt
title
tr
true
WooCommerce
WordPress
WP
Loading