From 748155a5d6e4a23b05ed5f8e61c37b2537699dfa Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Tue, 30 Apr 2024 10:30:42 +0300 Subject: [PATCH 1/6] fix(#294): description, topics escaped --- steps/discover-repos.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steps/discover-repos.rb b/steps/discover-repos.rb index 01b02b2c..64350e1f 100755 --- a/steps/discover-repos.rb +++ b/steps/discover-repos.rb @@ -120,8 +120,8 @@ def cooldown(opts, found) created_at: i[:created_at].iso8601, size: i[:size], open_issues_count: i[:open_issues_count], - description: i[:description], - topics: i[:topics] + description: "\"#{i[:description]}\"", + topics: i[:topics].join(" ") } puts "Found #{i[:full_name].inspect} GitHub repo ##{found.count} \ (#{i[:forks_count]} forks, #{i[:stargazers_count]} stars) with license: #{i[:license][:key]}" From f102f65b4df2d227bac2f2f2e13c8e6f3fe4c405 Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Tue, 30 Apr 2024 10:38:16 +0300 Subject: [PATCH 2/6] fix(#294): single quotes --- steps/discover-repos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steps/discover-repos.rb b/steps/discover-repos.rb index 64350e1f..20ab5146 100755 --- a/steps/discover-repos.rb +++ b/steps/discover-repos.rb @@ -121,7 +121,7 @@ def cooldown(opts, found) size: i[:size], open_issues_count: i[:open_issues_count], description: "\"#{i[:description]}\"", - topics: i[:topics].join(" ") + topics: i[:topics].join('') } puts "Found #{i[:full_name].inspect} GitHub repo ##{found.count} \ (#{i[:forks_count]} forks, #{i[:stargazers_count]} stars) with license: #{i[:license][:key]}" From c096a05fd1b304814b6e873acf3e4d887106809d Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Tue, 30 Apr 2024 10:44:52 +0300 Subject: [PATCH 3/6] fix(#294): space --- steps/discover-repos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steps/discover-repos.rb b/steps/discover-repos.rb index 20ab5146..44688421 100755 --- a/steps/discover-repos.rb +++ b/steps/discover-repos.rb @@ -121,7 +121,7 @@ def cooldown(opts, found) size: i[:size], open_issues_count: i[:open_issues_count], description: "\"#{i[:description]}\"", - topics: i[:topics].join('') + topics: i[:topics].join(' ') } puts "Found #{i[:full_name].inspect} GitHub repo ##{found.count} \ (#{i[:forks_count]} forks, #{i[:stargazers_count]} stars) with license: #{i[:license][:key]}" From 448213fa59274ab49e12fa95782209bed1ca1081 Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Tue, 30 Apr 2024 10:54:37 +0300 Subject: [PATCH 4/6] fix(#294): arrays --- steps/discover-repos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steps/discover-repos.rb b/steps/discover-repos.rb index 44688421..50b62ea5 100755 --- a/steps/discover-repos.rb +++ b/steps/discover-repos.rb @@ -121,7 +121,7 @@ def cooldown(opts, found) size: i[:size], open_issues_count: i[:open_issues_count], description: "\"#{i[:description]}\"", - topics: i[:topics].join(' ') + topics: Array(i[:topics]).join(' ') } puts "Found #{i[:full_name].inspect} GitHub repo ##{found.count} \ (#{i[:forks_count]} forks, #{i[:stargazers_count]} stars) with license: #{i[:license][:key]}" From c2b8649eae1097044b9b2fb142ad936b5e5e3962 Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Tue, 30 Apr 2024 11:00:53 +0300 Subject: [PATCH 5/6] chore: yamllint --- .github/workflows/pdd.yml | 2 +- .github/workflows/yamllint.yml | 2 ++ .yamllint.yml | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .yamllint.yml diff --git a/.github/workflows/pdd.yml b/.github/workflows/pdd.yml index eef0866e..69ba1999 100644 --- a/.github/workflows/pdd.yml +++ b/.github/workflows/pdd.yml @@ -21,7 +21,7 @@ # SOFTWARE. --- name: pdd -on: +'on': push: branches: - master diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index 2e54e3db..3d0c1490 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -34,3 +34,5 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ibiqlik/action-yamllint@v3 + with: + config_file: .yamllint.yml diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 00000000..cff9f711 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,4 @@ +rules: + line-length: + max: 80 + allow-non-breakable-words: true From 40c13b1a16012b77aecb3159add7f545f31b0341 Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Tue, 30 Apr 2024 11:03:28 +0300 Subject: [PATCH 6/6] chore: linlength disable on run line --- .github/workflows/actionlint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 7c84f7da..01f28c34 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v4 - name: Download actionlint id: get_actionlint + # yamllint disable-line rule:line-length run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) shell: bash - name: Check workflow files