Skip to content

Commit 36eab14

Browse files
CopilotTerrorSquad
andcommitted
fix: address code review feedback for Renovate implementation
Co-authored-by: TerrorSquad <11096867+TerrorSquad@users.noreply.github.com>
1 parent 0b0f7ad commit 36eab14

File tree

2 files changed

+36
-8
lines changed

2 files changed

+36
-8
lines changed

booster/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"schedule": ["every weekend"]
1616
},
1717
{
18-
"matchPackagePatterns": ["^php"],
18+
"matchPackagePatterns": ["^php/", "phpunit/", "phpstan/", "psalm/", "symfony/"],
1919
"groupName": "PHP dependencies"
2020
}
2121
],

docs/content/3.tools/9.renovate.md

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ graph TD
1515
C -->|Patch/Minor| D[Auto-merge if stable]
1616
C -->|Major| E[Create PR for review]
1717
D --> F[Dependencies updated]
18-
E --> G[Team reviews changes]
19-
G --> F
18+
E --> G{Team approves?}
19+
G -->|Yes| F
20+
G -->|No| H[PR closed/rejected]
2021
```
2122

2223
## Features
@@ -63,7 +64,7 @@ The default `renovate.json` configuration includes:
6364
"schedule": ["every weekend"]
6465
},
6566
{
66-
"matchPackagePatterns": ["^php"],
67+
"matchPackagePatterns": ["^php/", "phpunit/", "phpstan/", "psalm/", "symfony/"],
6768
"groupName": "PHP dependencies"
6869
}
6970
],
@@ -131,13 +132,40 @@ You can customize the configuration after integration by editing `renovate.json`
131132

132133
### On GitLab
133134

134-
1. Add the Renovate bot as a project member
135-
2. Configure CI/CD variables if needed
136-
3. Renovate will start creating merge requests
135+
1. Go to your project's **Settings > Members**
136+
2. Add the Renovate bot user with at least **Developer** role (required for creating merge requests)
137+
3. Configure CI/CD variables if needed:
138+
- `RENOVATE_TOKEN`: Personal access token with API access (for private repos)
139+
- `RENOVATE_PLATFORM`: Set to `gitlab`
140+
4. Optional: Set up scheduled pipelines to run Renovate at regular intervals
141+
5. Renovate will start creating merge requests based on your `renovate.json` configuration
142+
143+
For more details, see [Renovate GitLab documentation](https://docs.renovatebot.com/modules/platform/gitlab/).
137144

138145
### Self-Hosted
139146

140-
For self-hosted Renovate, refer to the [official documentation](https://docs.renovatebot.com/self-hosting/).
147+
For self-hosted Renovate installations:
148+
149+
1. Install Renovate following the [self-hosting guide](https://docs.renovatebot.com/self-hosting/)
150+
2. Configure your Renovate instance to scan repositories with `renovate.json` files
151+
3. Set up environment variables:
152+
- `RENOVATE_PLATFORM`: Your git platform (`github`, `gitlab`, `bitbucket`, etc.)
153+
- `RENOVATE_ENDPOINT`: Your platform's API endpoint
154+
- `RENOVATE_TOKEN`: Authentication token with repository access
155+
4. The provided `renovate.json` configuration works with self-hosted instances
156+
5. Consider customizing the schedule to match your team's workflow
157+
158+
**Example Docker command:**
159+
```bash
160+
docker run --rm \
161+
-e RENOVATE_PLATFORM=gitlab \
162+
-e RENOVATE_ENDPOINT=https://gitlab.example.com/api/v4 \
163+
-e RENOVATE_TOKEN=your-token \
164+
-v /path/to/config:/usr/src/app/config \
165+
renovate/renovate
166+
```
167+
168+
For more advanced setups, refer to the [official self-hosting documentation](https://docs.renovatebot.com/self-hosting/).
141169

142170
## Package Support
143171

0 commit comments

Comments
 (0)