Skip to content

Commit

Permalink
Renovate Buildkite Plugins in Docs (#1530)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Ling <ryan@outlook.com.au>
  • Loading branch information
samchungy and 72636c committed Apr 10, 2024
1 parent 368035b commit 9125bd8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/renovate.json5
Expand Up @@ -114,16 +114,13 @@
},
{
customType: 'regex',
fileMatch: ['docs/.*.md$'],

// Matches Buildkite plugins but preserves versions in the before diffs
// - docker-compose#v2.0.0: PASS
// - - docker-compose#v2.0.0: FAIL
// + - docker-compose#v2.0.0: PASS
fileMatch: ['docs\\/.*\\.md$'],
// (\\s|\\n) allows us to use the non breaking space to prefix plugins in diffs which we don't want Renovate to touch
matchStrings: [
'^[s+]*- (?<depName>[a-zA-Z0-9-/]+?)#(?<currentValue>.*?):',
'(\\s|\\n)(?<depName>[a-zA-Z0-9\\/_\\.\\-]+)#(?<currentValue>v[^:]+)',
],
datasourceTemplate: 'buildkite',
packageNameTemplate: "{{#if (containsString depName '/')}}{{depName}}-buildkite-plugin{{else}}buildkite-plugins/{{depName}}-buildkite-plugin{{/if}}",
datasourceTemplate: 'github-tags',
},
],
}

0 comments on commit 9125bd8

Please sign in to comment.