Commit Graph

571 Commits

Author SHA1 Message Date
8eac4cab85 Updated Linguist to v7.19.0 2022-03-03 20:08:49 +00:00
525ee9b302 Merge pull request #73 from go-enry/feature/sync-linguist-1639598838
Update Linguist to v7.18.0
2021-12-20 19:08:13 +01:00
2febea0489 Updated Linguist to v7.18.0 2021-12-15 20:08:13 +00:00
41482679da Merge pull request #72 from look/look/auto-update-readme
Auto-update Linguist version in README.md
2021-11-17 14:47:20 +01:00
ebae3f80bd Merge pull request #66 from go-enry/feature/sync-linguist-1636907719
Update Linguist to v7.17.0
2021-11-17 14:46:25 +01:00
95ac19f504 Auto-update Linguist version in README.md 2021-11-16 12:24:28 -08:00
9dbb8ccbaf doc: bump linguist version 2021-11-16 09:36:42 +01:00
b3ee64f627 Updated Linguist to v7.17.0 2021-11-14 18:33:24 +01:00
619127770d Merge pull request #67 from go-enry/test-fixture-upd
Test: update language name comparison
2021-11-14 18:32:12 +01:00
0c3a5927bb test: case-insensitive language name comparison 2021-11-14 18:28:09 +01:00
d47102badf test: update language name fixture 2021-11-14 18:28:09 +01:00
4fdd4a4a64 Merge pull request #61 from look/look/automate-linguist
GitHub Actions workflow to automatically update Linguist
2021-11-14 17:19:34 +01:00
4a4b29796b Merge pull request #62 from look/look/langinfo
Expose `LanguageInfo` with all Linguist data
2021-11-14 17:12:03 +01:00
6f321c1e71 remove ``
This runs a CLI so it would need to be escaped
2021-11-01 16:21:04 -07:00
d10b372338 harmonize naming 2021-11-01 16:17:15 -07:00
f0dd1b4908 short commit for easier to read output 2021-11-01 16:16:05 -07:00
9c452db16f fix link 2021-11-01 16:10:22 -07:00
fa3f723873 Improve PR body with release notes and compare view 2021-11-01 16:06:41 -07:00
03b31eb4ce Update internal/code-generator/main.go
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-10-13 10:30:19 -07:00
57c5940dbe Update common.go
Thanks @lafriks for catching this!

Co-authored-by: Lauris BH <lauris@nix.lv>
2021-10-12 16:20:14 -07:00
02878b9c9f Rename CodemirrorMode to CodeMirrorMode
It is a bit of a Rubyism to translate "CodeMirror Mode" into "codemirror_mode".
This is more in line with Go practices.
2021-10-12 16:18:33 -07:00
b6b72c6c08 Add documentation to LanguageInfo struct fields
These are adapted from https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
2021-10-12 16:13:59 -07:00
6212f1fcb4 Remove name -> LanguageInfo mapping per code review
The GetLanguageInfo method is now implemented in terms of GetLanguageInfoByID.
This is possible because you can use GetLanguageID to get the ID for a language.
2021-10-12 13:29:39 -07:00
6279d53f66 clean up whitespace in template 2021-10-11 14:20:25 -07:00
4bde6c61a1 remove obsolete TODO 2021-10-11 14:06:29 -07:00
b248b21349 Expose LanguageInfo with all Linguist data
As discussed in https://github.com/go-enry/go-enry/issues/54, this provides an
API for accessing a LanguageInfo struct which is populated with all the data
from the Linguist YAML source file. Functions are provided to access the
LanguageInfo by name or ID.

The other top-level functions like GetLanguageExtensions, GetLanguageGroup, etc.
could in principle be implemented using this structure, which would simplify the
code generation. But that would be a big change so I didn't do any of that.
Perhaps in the next major version something like that would make sense.
2021-10-11 13:32:29 -07:00
bd95ff290b Update linguist commit 2021-10-08 15:59:21 -07:00
da43eff66d Add PR title 2021-10-08 15:18:02 -07:00
12d12a6568 Run once a day 2021-10-08 15:14:36 -07:00
e5a59053d9 newline 2021-10-08 15:05:56 -07:00
dc30500505 set source branch for PR 2021-10-08 15:00:53 -07:00
18ba08ce22 need outputs 2021-10-08 14:53:47 -07:00
91df2121b1 try true rather than 'true' 2021-10-08 14:50:08 -07:00
73a29fd324 add a tag override for testing 2021-10-08 14:39:00 -07:00
202ca6a675 tweak commit step for debugging 2021-10-08 14:27:46 -07:00
8b3fc58258 sigh use -z 2021-10-08 14:14:32 -07:00
c6f7913c28 remove extra whitespace, check $latest 2021-10-08 14:10:59 -07:00
7def8c82ce this shouldn't be required to stop the workflow 2021-10-08 12:20:28 -07:00
f0b2a73b5b fix branch_name 2021-10-08 11:56:56 -07:00
3fae59fb31 improve error handling, save branch name for push 2021-10-08 11:55:06 -07:00
e86c6b862f correct variable assignment 2021-10-08 11:46:12 -07:00
0d5322628e remove comment from shell pipeline 2021-10-08 11:42:59 -07:00
7d8cb546b7 First pass at Linguist automation 2021-10-08 11:33:52 -07:00
adb553dc50 Merge pull request #60 from lafriks-fork/feat/linguist_v7.16.1
Update to Linguist v7.16.1
2021-09-26 11:20:01 +02:00
0affa3ccca Update to Linguist v7.16.1 2021-09-25 23:57:50 +03:00
0ae768336f Merge pull request #58 from lafriks-fork/feat/improve_shebang
Improve env shebang parsing to detect correct interpreter
2021-09-25 22:55:28 +02:00
effee97b6a Merge pull request #59 from lafriks-fork/feat/golang_v1.17
ci: update go versions
2021-09-25 22:53:30 +02:00
2d3e1ea236 ci: update go versions 2021-09-25 19:28:10 +03:00
4686615d9e Improve shebang parsing to detect correct interpreter 2021-09-25 19:24:44 +03:00
7c24e3d5d2 Merge pull request #56 from rykov/fix-shebang-env
Fixed GetLanguagesByShebang for paths with “env”
2021-06-25 17:46:15 +02:00