Skip to content

Commit

Permalink
chore: add eof
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjahnke committed Jun 22, 2021
1 parent dc2015e commit 8eb8134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/spelling/patterns/patterns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ http://keepachangelog.com
`/dataspaceconnector/config/`
`config.json`
app.kubernetes.io
helm install dataspaceconnector charts/dataspace-connector
helm install dataspaceconnector charts/dataspace-connector

1 comment on commit 8eb8134

@github-actions
Copy link

@github-actions github-actions bot commented on 8eb8134 Jun 22, 2021

Choose a reason for hiding this comment

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

@check-spelling-bot Report

Unrecognized words, please review:

  • Dataspace
  • dataspaceconnector
  • href
  • html
  • img
  • jsonpath
  • localhost
  • metadata
  • namespace
  • Postgre
  • src
  • uninstall
  • url
  • username
Previously acknowledged words that are now absent SSL
To accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands

... in a clone of the git@github.com:brianjahnke/IDS-Deployment-Examples.git repository
on the spellchecking branch:

update_files() {
perl -e '
my @expect_files=qw('".github/actions/spelling/expect/expect.txt
.github/actions/spelling/expect/web.txt"');
@ARGV=@expect_files;
my @stale=qw('"$patch_remove"');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect/8eb8134f4bb6c5a7984fb79d39c6b87772fae240.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 \
  --header "Content-Type: application/json" \
  "https://api.github.com/repos/brianjahnke/IDS-Deployment-Examples/comments/52496680" > "$comment_json"
comment_body=$(mktemp)
jq -r .body < "$comment_json" > $comment_body
rm $comment_json

patch_remove=$(perl -ne 'next unless s{^</summary>(.*)</details>$}{$1}; print' < "$comment_body")
  

patch_add=$(perl -e '$/=undef;
$_=<>;
s{<details>.*}{}s;
s{^#.*}{};
s{\n##.*}{};
s{(?:^|\n)\s*\*}{}g;
s{\s+}{ }g;
print' < "$comment_body")
  
update_files
rm $comment_body
git add -u
✏️ Contributor please read this

Thank you for contributing 🔥

Please sign in to comment.