Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Support asdf-typos (#1034)
Browse files Browse the repository at this point in the history
* `make scaffold PLUGIN=typos`

* Fill typos templates

* `make merge`
  • Loading branch information
kachick committed Jul 26, 2023
1 parent 074166f commit 7fe9df7
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
7 changes: 7 additions & 0 deletions default.json
Expand Up @@ -250,6 +250,13 @@
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>\\S+)"
},
{
"fileMatch": ["\\.tool-versions$"],
"matchStrings": ["(^|\\n)typos (?<currentValue>\\S+)"],
"depNameTemplate": "crate-ci/typos",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>\\S+)"
},
{
"fileMatch": ["\\.tool-versions$"],
"matchStrings": ["(^|\\n)yamlfmt (?<currentValue>\\S+)"],
Expand Down
1 change: 1 addition & 0 deletions examples/.tool-versions
Expand Up @@ -34,5 +34,6 @@ shellcheck 0.9.0
shfmt 3.7.0
terraform 1.5.3
trivy 0.43.1
typos 1.13.10
yamlfmt 0.9.0
zig 0.10.0
17 changes: 17 additions & 0 deletions plugins/typos.json5
@@ -0,0 +1,17 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Bump typos in .tool-versions",
"regexManagers": [
{
"fileMatch": ["\\.tool-versions$"],
"matchStrings": ["(^|\\n)typos (?<currentValue>\\S+)"],
// Official Plugin: https://github.com/asdf-vm/asdf-plugins/pull/858
// Plugin Fetcher Permalink: https://github.com/aschiavon91/asdf-typos/blob/1fbc7317c91e16bc7b04ecc9fabd028ad51218d5/lib/utils.bash#L5
// DataSource URL: https://github.com/crate-ci/typos/releases
"depNameTemplate": "crate-ci/typos",
"datasourceTemplate": "github-releases",
// https://github.com/crate-ci/typos/releases/tag/v1.16.1
"extractVersionTemplate": "^v(?<version>\\S+)"
}
]
}
2 changes: 1 addition & 1 deletion renovate.json
Expand Up @@ -27,7 +27,7 @@
"matchPackagePrefixes": ["dprint"]
}
],
"labels": ["renovate", "dependencies", "ignore-this-label-just-for-trigger-renovate-b5d5af"],
"labels": ["renovate", "dependencies", "ignore-this-label-just-for-trigger-renovate-985121"],
"ignorePaths": [
"**/node_modules/**",
"**/bower_components/**",
Expand Down
5 changes: 5 additions & 0 deletions test/examples.ts
Expand Up @@ -131,6 +131,11 @@ export const examples = [
source: 'v0.31.3',
extracted: '0.31.3',
},
{
plugin: 'typos',
source: 'v1.16.1',
extracted: '1.16.1',
},
{
plugin: 'yamlfmt',
source: 'v0.9.0',
Expand Down

0 comments on commit 7fe9df7

Please sign in to comment.