Skip to content

docs: added related docs to 05,06. #7

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

Merged
merged 1 commit into from
Apr 6, 2022
Merged

docs: added related docs to 05,06. #7

merged 1 commit into from
Apr 6, 2022

Conversation

amrHassanAbdallah
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Apr 5, 2022

@check-spelling-bot Report

🔴 Please review

Unrecognized words (88)
aefac
Aylf
bdd
Bdxw
bouns
bzauor
cbf
Cdeveloper
clealy
cloudbees
coderslegacy
Dcentric
depreacted
devart
donnemartin
elzanaty
faild
foreignkey
FSictc
geeksforgeeks
getify
gkb
googling
Haris
Ikqp
inezabonte
interviewbit
Jei
JWT
kanakinfosystems
KENj
Kindson
kindsonthegenius
Knq
linting
liste
logrocket
Maiborn
maibornwolff
mohammedelzanaty
mozilla
NBSk
NDIf
Netlify
nodejs
nosql
npmjs
npx
nsoft
Oliveira
plainenglish
PLLWu
Posgre
posgresql
postgre
postgresql
Proccessing
qac
RXn
ryconoclast
scottlogic
serokell
shreyanshsheth
sqlserver
sqlshack
stackabuse
taiyr
tcorral
tdd
testim
Thiago
thiagooliveirasantos
timeline
timestamping
trekhleb
tutorialsteacher
typeorm
typescripttutorial
udacity
UNPROCESSABLE
VLQ
Walkthrough
ygw
yonisfy
youtube
Yxkr
zanaty
Zujo
To accept these unrecognized words as correct, run the following commands

... in a clone of the git@github.com:mohammedelzanaty/web-programming-with-javascript.git repository
on the develop branch:

update_files() {
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
use File::Basename qw(dirname);
make_path (dirname($new_expect_file));
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"$patch_add"');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a)."-".$a cmp lc($b)."-".$b} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;
system("git", "add", $new_expect_file);
'
}

comment_json=$(mktemp)
curl -L -s -S \
  -H "Content-Type: application/json" \
  "https://api.github.com/repos/mohammedelzanaty/web-programming-with-javascript/issues/comments/1089363486" > "$comment_json"
comment_body=$(mktemp)
jq -r ".body // empty" "$comment_json" > $comment_body
rm $comment_json

patch_add=$(perl -e '$/=undef; $_=<>; print "$1" if m{Unrecognized words[^<]*</summary>\n*```\n*([^<]*)```\n*</details>$}m;' < "$comment_body")
  
update_files
rm $comment_body
git add -u
If you see a bunch of garbage

If it relates to a ...

well-formed pattern

See if there's a pattern that would match it.

If not, try writing one and adding it to the patterns.txt file.

Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

Note that patterns can't match multiline strings.

binary-ish string

Please add a file path to the excludes.txt file instead of just accepting the garbage.

File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

Alternatively, the bot can do this for you if you reply quoting the following line:
@check-spelling-bot apply changes.

@moelzanaty3 moelzanaty3 merged commit f84bf84 into main Apr 6, 2022
@moelzanaty3 moelzanaty3 deleted the develop branch April 6, 2022 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants