From 9fc16a938915e4ae78b6f9f09df28715167e10eb Mon Sep 17 00:00:00 2001 From: Alex Bezzubov Date: Wed, 6 Sep 2023 20:03:41 +0300 Subject: [PATCH 1/2] ci: fix sync linguist 'No PR' output --- .github/workflows/sync-linguist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-linguist.yml b/.github/workflows/sync-linguist.yml index 543c1a8..fe63451 100644 --- a/.github/workflows/sync-linguist.yml +++ b/.github/workflows/sync-linguist.yml @@ -126,5 +126,5 @@ jobs: if: ${{ steps.commit.outputs.needs_pr == 'true' }} run: echo ${{ steps.open-pr.outputs.pr_url }} - name: No PR Created - if: ${{ steps.commit.needs_pr != true }} + if: ${{ steps.commit.needs_pr != 'true' }} run: echo "No changes for ${{ steps.linguist-release.outputs.linguist_version }}" From f435dd406f77418cf1f924c0cc1e82e9bd2c54c3 Mon Sep 17 00:00:00 2001 From: Alex Bezzubov Date: Wed, 6 Sep 2023 20:05:19 +0300 Subject: [PATCH 2/2] test: add one more LanguagesByFilename case --- common_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common_test.go b/common_test.go index b3bd45c..4e36193 100644 --- a/common_test.go +++ b/common_test.go @@ -275,6 +275,7 @@ func (s *enryTestSuite) TestGetLanguagesByFilename() { {name: "TestGetLanguagesByFilename_7", filename: "_vimrc", expected: []string{"Vim Script"}}, {name: "TestGetLanguagesByFilename_8", filename: "pom.xml", expected: []string{"Maven POM"}}, {name: "TestGetLanguagesByFilename_9", filename: "", expected: nil}, + {name: "TestGetLanguagesByFilename_10", filename: "hi.py", expected: []string{"Python"}}, } for _, test := range tests {