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

Support direnv #166

Merged
merged 1 commit into from Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions default.json
Expand Up @@ -6,6 +6,7 @@
"local>kachick/renovate-config-asdf//plugins/clojure.json5",
"local>kachick/renovate-config-asdf//plugins/crystal.json5",
"local>kachick/renovate-config-asdf//plugins/deno.json5",
"local>kachick/renovate-config-asdf//plugins/direnv.json5",
"local>kachick/renovate-config-asdf//plugins/dprint.json5",
"local>kachick/renovate-config-asdf//plugins/elixir.json5",
"local>kachick/renovate-config-asdf//plugins/elm.json5",
Expand Down
1 change: 1 addition & 0 deletions examples/.tool-versions
Expand Up @@ -2,6 +2,7 @@ bun 0.1.13
clojure 1.11.1.1165
crystal 1.5.1
deno 1.26.0
direnv 2.30.2
dprint 0.32.1
elixir 1.14.0
elm 0.19.1
Expand Down
15 changes: 15 additions & 0 deletions plugins/direnv.json5
@@ -0,0 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Bump direnv in .tool-versions",
"regexManagers": [
{
"fileMatch": ["\\.tool-versions$"],
"matchStrings": ["direnv (?<currentValue>.+?)\\n"],
// Plugin Fetcher Permalink: https://github.com/asdf-community/asdf-direnv/blob/62c2708ae8faedc4df564b7242fa4eff0f20b0b7/bin/list-all#L10-L15
// DataSource URL: https://github.com/direnv/direnv/releases
"depNameTemplate": "direnv/direnv",
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>\\S+)"
}
]
}
5 changes: 5 additions & 0 deletions test/regex_test.ts
Expand Up @@ -17,6 +17,11 @@ test('extractVersionTemplate', (_t) => {
source: 'v1.25.2',
extracted: '1.25.2',
},
{
plugin: 'direnv',
source: 'v2.32.1',
extracted: '2.32.1',
},
{
plugin: 'elixir',
source: 'v1.14.0',
Expand Down