Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add Renovate configuration #35

Merged
merged 1 commit into from
May 20, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ repos:
args: ["--config-file", "pyproject.toml"]
additional_dependencies:
- types-PyYAML
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--strict]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 37.353.0
hooks:
- id: renovate-config-validator
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

[![Continuous Integration Status](https://github.com/canonical/glauth-k8s-operator/actions/workflows/on_push.yaml/badge.svg?branch=main)](https://github.com/canonical/glauth-k8s-operator/actions?query=branch%3Amain)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196.svg)](https://conventionalcommits.org)

This repository holds the Juju Kubernetes charmed operator
for [GLAuth](https://github.com/glauth/glauth), an open-sourced LDAP server.
Expand Down
75 changes: 75 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":disableDependencyDashboard",
":automergeDigest",
":automergePatch",
":automergeMinor",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)",
"helpers:pinGitHubActionDigests",
":enablePreCommit"
],
"automergeType": "pr",
"rebaseWhen": "behind-base-branch",
"packageRules": [
{
"groupName": "github actions",
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"],
"additionalBranchPrefix": "auto-"
},
{
"groupName": "operator pip deps",
"matchManagers": ["pip_requirements"],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"schedule": ["at any time"],
"prPriority": 5,
"additionalBranchPrefix": "auto-"
},
{
"groupName": "operator pip deps",
"matchManagers": ["pip_requirements"],
"matchUpdateTypes": ["major"],
"schedule": ["at any time"],
"prPriority": 5
},
{
"groupName": "testing pip deps",
"matchManagers": ["pip_requirements"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"],
"prPriority": 4,
"additionalBranchPrefix": "auto-"
},
{
"groupName": "testing deps",
"matchFiles": ["tox.ini"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["on monday"],
"additionalBranchPrefix": "auto-"
},
{
"groupName": "renovate packages",
"matchSourceUrlPrefixes": ["https://github.com/renovatebot/"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"],
"additionalBranchPrefix": "auto-"
},
{
"groupName": "pre-commit hooks",
"matchManagers": ["pre-commit"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"],
"additionalBranchPrefix": "auto-"
}
]
}
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ deps =
mypy
types-PyYAML
commands =
pre-commit install
pre-commit autoupdate
pre-commit install -t commit-msg

[testenv:fmt]
description = Apply coding style standards to code
Expand Down
Loading