Skip to content
Open
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
18 changes: 0 additions & 18 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:best-practices",
":semanticCommits"
],
"gitAuthor": "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>",
"minimumReleaseAge": "14 days",
"customManagers": [
{
"customType": "regex",
Expand All @@ -21,17 +15,5 @@
"matchStrings": ["github:(?<depName>[\\w-]+/[\\w-]+)/(?<currentDigest>[a-f0-9]+).*#\\s*(?<currentValue>v[\\S]+)"],
"datasourceTemplate": "github-releases"
}
],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "digest"],
"groupName": "non-major dependencies",
"groupSlug": "non-major"
},
{
"matchUpdateTypes": ["major"],
"groupName": "major dependencies",
"groupSlug": "major"
}
]
}
32 changes: 0 additions & 32 deletions .github/workflows/renovate.yaml

This file was deleted.

21 changes: 2 additions & 19 deletions template/.github/renovate.json.jinja
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:best-practices",
":semanticCommits"
],
"gitAuthor": "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>",
"minimumReleaseAge": "14 days",
"$schema": "https://docs.renovatebot.com/renovate-schema.json"{% if _is_template %},
"customManagers": [
{% include pathjoin("includes", "renovate-template.jinja") ignore missing %}
],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "digest"],
"groupName": "non-major dependencies",
"groupSlug": "non-major"
},
{
"matchUpdateTypes": ["major"],
"groupName": "major dependencies",
"groupSlug": "major"
}
]
{% endif %}
}
32 changes: 0 additions & 32 deletions template/.github/workflows/renovate.yaml

This file was deleted.

14 changes: 4 additions & 10 deletions tests/test_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,11 @@ def test_pr_checks_pinned_actions(generated_github_project):


def test_renovate_config_valid_json(generated_github_project):
"""renovate.json is valid JSON with expected keys."""
"""renovate.json is valid JSON with $schema (khepri-managed, minimal config)."""
data = parse_json(generated_github_project / ".github" / "renovate.json")
assert "extends" in data
assert "customManagers" in data


def test_renovate_no_template_config(generated_github_project):
"""Default projects don't have template-specific Renovate managers."""
content = (generated_github_project / ".github" / "renovate.json").read_text()
assert "postUpgradeTasks" not in content
assert "template/" not in content
assert "$schema" in data
assert "extends" not in data
assert "customManagers" not in data


def test_security_md(generated_github_project):
Expand Down
Loading