Skip to content

Commit

Permalink
feat(manager/asdf): add yamlfmt (#22472)
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed May 29, 2023
1 parent da6f2ed commit a193fe3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/modules/manager/asdf/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ zig 0.9.1
maestro 1.24.0
detekt 1.21.0
ktlint 0.48.1
yamlfmt 0.9.0
dummy 1.2.3
`
);
Expand Down Expand Up @@ -508,6 +509,13 @@ dummy 1.2.3
packageName: 'pinterest/ktlint',
depName: 'ktlint',
},
{
currentValue: '0.9.0',
datasource: 'github-releases',
packageName: 'google/yamlfmt',
depName: 'yamlfmt',
extractVersion: '^v(?<version>\\S+)',
},
{
depName: 'dummy',
skipReason: 'unsupported-datasource',
Expand Down
8 changes: 8 additions & 0 deletions lib/modules/manager/asdf/upgradeable-tooling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,4 +526,12 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = {
packageName: 'pinterest/ktlint',
},
},
yamlfmt: {
asdfPluginUrl: 'https://github.com/kachick/asdf-yamlfmt',
config: {
datasource: GithubReleasesDatasource.id,
packageName: 'google/yamlfmt',
extractVersion: '^v(?<version>\\S+)',
},
},
};

0 comments on commit a193fe3

Please sign in to comment.