Skip to content

Commit 2b5ff3a

Browse files
sumanas27ss675udraco2003
authored
Add-renovate (#32)
* Add-renovate * Update .github/workflows/lint.yml Co-authored-by: ss675u <[email protected]> Co-authored-by: Dan Rowe <[email protected]>
1 parent 72d0e5a commit 2b5ff3a

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Renovate Config Linting
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
renovate:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: 🧼 lint renovate config # Validates changes to renovate.json config file
11+
uses: suzuki-shunsuke/[email protected]
12+
with:
13+
config_file_path: 'renovate.json'

renovate.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"description": "Renovate configuration for hypernova php repository",
4+
"extends": [
5+
"config:base",
6+
":dependencyDashboard",
7+
":rebaseStalePrs"
8+
],
9+
"schedule": [
10+
"before 3am every weekday"
11+
],
12+
"enabledManagers": [
13+
"github-actions"
14+
],
15+
"composer": {
16+
"packageRules": [
17+
{
18+
"description": "Wait 3 days before opening a PR for new major version updates",
19+
"matchUpdateTypes": ["major"]
20+
},
21+
{
22+
"description": "Automerge non-major version updates (assuming the CI pipelines pass)",
23+
"matchUpdateTypes": ["patch", "minor"]
24+
}
25+
]
26+
},
27+
"packageRules": [
28+
{
29+
"matchManagers": ["github-actions"],
30+
"groupName": "GitHub Actions"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)