Skip to content

Commit

Permalink
chore: renovate setup for openapi generator (#2043)
Browse files Browse the repository at this point in the history
## Proposed change

Setup Renovate to update open-api generator version
Example of run https://github.com/fpaul-1A/otter/pull/94/files

## Related issues

- 🐛 Fixes #(issue)
- 🚀 Feature #(issue)

<!-- Please make sure to follow the contributing guidelines on
https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md -->
  • Loading branch information
fpaul-1A authored Aug 13, 2024
2 parents a7cad85 + c8bfd93 commit 67cf591
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .renovaterc.json5
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"enabledManagers": [
"npm",
"github-actions",
"gradle"
"gradle",
"maven",
"regex"
],
"labels": [
"dependencies"
Expand Down Expand Up @@ -95,6 +97,43 @@
".*markdown-link-check"
],
"enabled": false
},

// OpenAPI updates
{
"matchManagers": ["maven"],
"groupName": "Open API updates",
"groupSlug": "openapi",
"includePaths": [
"packages/@ama-sdk/schematics"
]
},
{
"matchDepNames": [
"org.openapitools:openapi-generator"
],
"groupName": "Open API updates",
"groupSlug": "openapi"
},
{
// We don't want to update this dep as we are still targeting a fork
"matchPackageNames": [
"io.swagger:swagger-codegen-cli"
],
"enabled": false
}
],
customManagers: [
{
"customType": "regex",
"datasourceTemplate": "maven",
"depNameTemplate": "org.openapitools:openapi-generator",
"fileMatch": [
"packages/@ama-sdk/schematics/package\\.json"
],
"matchStrings": [
"\"openApiSupportedVersion\": \"~(?<currentValue>[^\"]+)\""
]
}
]
}

0 comments on commit 67cf591

Please sign in to comment.