Skip to content

Commit

Permalink
ci(renovate): remove labeled trigger; add badges (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrbrown authored Oct 29, 2024
1 parent 8d1d706 commit e96817e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'**/dist/**',
'packages/api-core/test-utils/sdks/**',
],
ignorePresets: ['mergeConfidence:age-confidence-badges', 'mergeConfidence:all-badges'],
packageRules: [
{
description: 'Group packages from @readmeio/oas monorepo together.',
Expand Down Expand Up @@ -47,6 +48,38 @@
matchPackageNames: ['fetch-mock'],
allowedVersions: '<12.0.0',
},
{
description: 'Show Merge Confidence, OpenSSF Scorecard, and Sourcegraph badges for Renovate dependencies.',
matchDatasources: ['go', 'maven', 'npm', 'nuget', 'packagist', 'pypi', 'rubygems'],
matchUpdateTypes: ['patch', 'minor', 'major'],
prBodyColumns: [
'Package',
'Type',
'Update',
'Change',
'Pending',
'Age',
'Confidence',
'Sourcegraph',
],
},
{
description: 'Show Merge Confidence, OpenSSF Scorecard, and Sourcegraph badges for Renovate dependencies.',
matchDatasources: ['go', 'maven', 'npm', 'nuget', 'packagist', 'pypi', 'rubygems'],
matchUpdateTypes: ['patch', 'minor', 'major'],
matchSourceUrls: ['https://github.com/**'],
prBodyColumns: [
'Package',
'Type',
'Update',
'Change',
'Pending',
'OpenSSF',
'Age',
'Confidence',
'Sourcegraph',
],
},
],
patch: {
automerge: true,
Expand All @@ -57,6 +90,9 @@
commands: ['pnpm install --frozen-lockfile', 'pnpm fix', 'pnpm format'],
executionMode: 'branch',
},
prBodyDefinitions: {
Sourcegraph: '[![code search for "{{{depName}}}"](https://sourcegraph.com/search/badge?q=repo:%5Egithub%5C.com/{{{repository}}}%24+case:yes+-file:package%28-lock%29%3F%5C.json+{{{depName}}}&label=matches)](https://sourcegraph.com/search?q=repo:%5Egithub%5C.com/{{{repository}}}%24+case:yes+-file:package%28-lock%29%3F%5C.json+{{{depName}}})',
},
prCreation: 'not-pending',
rebaseWhen: 'auto',
}
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Renovate
issues:
types: [edited]
pull_request:
types: [edited, labeled]
types: [edited]
push:
branches: ['**']
workflow_dispatch:
Expand Down

0 comments on commit e96817e

Please sign in to comment.