You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-62Lines changed: 57 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
# Renovate - Hands On Tutorial
2
2
3
-
4
3
## Introduction
5
4
6
5
Welcome to the Renovate hands-on tutorial.
@@ -15,10 +14,10 @@ In this tutorial, you will learn how to configure Renovate and become familiar w
15
14
16
15
What you will learn:
17
16
18
-
- 1 Installation
19
-
- 1 Onboarding
20
-
- 1 Getting to know Renovate’s update PRs
21
-
- 1 Dependency Dashboard
17
+
1. Installation
18
+
2. Onboarding
19
+
3. Getting to know Renovate’s update PRs
20
+
4. Dependency Dashboard
22
21
23
22
We will begin this tutorial with configuring and installing the Renovate app and an overview of the default settings and basic functionalities.
24
23
@@ -28,15 +27,15 @@ Later, we will dive deeper into functional use-cases, advanced features, and `be
28
27
29
28
Let’s start by forking the tutorial repo to your account, installing the Renovate GitHub App, and configuring it to your repo.
30
29
31
-
- 1 Make sure you are logged in to GitHub.com
32
-
- 1 Fork this [RenovateTutorial](https://github.com/PhilipAbed/RenovateTutorial) repository. The tutorial instructions will be based on the contents of this repository
33
-
- 1 The following instructions are directed at those that don’t have Renovate installed:
30
+
1. Make sure you are logged in to GitHub.com
31
+
1. Fork this [RenovateTutorial](https://github.com/PhilipAbed/RenovateTutorial) repository. The tutorial instructions will be based on the contents of this repository
32
+
1. The following instructions are directed at those that don’t have Renovate installed:
34
33
- Install the Renovate App to your account by navigating to the [Renovate App GitHub installation page](https://github.com/apps/renovate) and select Install:
Now that you have Renovate installed, we can begin onboarding.
67
+
Now you have installed Renovate, we can begin onboarding.
69
68
70
69
Let’s review the concepts of the Onboarding PR and learn about Renovate’s initial settings.
71
70
@@ -76,8 +75,9 @@ Let’s review the concepts of the Onboarding PR and learn about Renovate’s in
76
75
- This PR is there to help you understand Renovate and its default settings before Renovate starts running on your repository.
77
76
- The Onboarding PR creates a configuration file called `renovate.json`, which contains Renovate’s default settings and can be modified during onboarding.
78
77
79
-
Now let’s review the onboarding PR -
80
-
- 1 Navigate to the `Pull Requests` section in GitHub, and open the newly generated PR - `Configure Renovate`
78
+
Let’s review the onboarding PR:
79
+
80
+
1. Navigate to the `Pull Requests` section in GitHub, and open the newly generated PR - `Configure Renovate`
Let’s dive into one of the dependency dashboard capabilities - **the Pending Approval feature**.
238
+
Let’s dive into one of the Dependency Dashboard capabilities - **the Pending Approval feature**.
241
239
242
240
Say we want to take extra measures before updating major versions of a package (either to reduce noise or to handle it more carefully).
243
241
Renovate offers an option to prevent automatic creation of major version update PRs and create such PRs only upon manual request from the Dependency Dashboard.
244
242
245
-
In the Dependency Dasboard, under the `Rate Limited` section, the `Update dependency commander to vX` is waiting to be created.
243
+
In the Dependency Dashboard, under the `Rate Limited` section, the `Update dependency commander to vX` is waiting to be created.
246
244
247
245
> **Note**
248
-
> based on the previously set `prHourlyLimit` configuration, 3 PRs per hour in our case, this PR will be created within an hour.
246
+
> Based on the previously set `prHourlyLimit` configuration, 3 PRs per hour in our case, this PR will be created within an hour.
249
247
250
248
<imgwidth="928"alt="commander in Rate Limited"src="https://user-images.githubusercontent.com/102745725/178960104-c254c12f-08fb-4508-824d-20df60b2290f.png">
251
249
252
-
Since we decided that we want to handle it manually, we will edit configurations and see how the dependency dashboard is affected by this change.
250
+
Since we decided that we want to handle it manually, we will edit configurations and see how the Dependency Dashboard is affected by this change.
253
251
254
-
In order to limit all major updates to on-demand creation:
252
+
In order to limit all `major` updates to on-demand creation:
255
253
256
-
- 1 Add this code segment to your `renovate.json` file:
254
+
1. Add this code segment to your `renovate.json` file:
257
255
```json
258
256
"packageRules": [
259
257
{
@@ -265,44 +263,44 @@ In order to limit all major updates to on-demand creation:
265
263
266
264
<imgwidth="924"alt="change in config - pending approval"src="https://user-images.githubusercontent.com/102745725/178962677-612e8172-fac7-45fb-937b-46a559d848f0.png">
267
265
268
-
- 1 Commit the changes
266
+
2. Commit the changes
269
267
270
268
> **Note**
271
-
> Changing the `renovate.json` configuraion file is a webhook that triggers Renovate to re-run.
272
-
273
-
- 1 Now go back to the Dependency Dashboard in the Issues section
269
+
> Changing the `renovate.json` configuration file is a webhook that triggers Renovate to re-run.
274
270
275
-
- 1 As you can see, `commander` major update PR now appears under the **Pending Approval** section and **will not** be opened unless manually triggered
271
+
3. Now go back to the Dependency Dashboard in the Issues section
272
+
4. As you can see, `commander` major update PR now appears under the **Pending Approval** section and **will not** be opened unless manually triggered
276
273
277
274
> **Note**
278
275
> it make take a minute to complete Renovate's run
279
276
280
277
<imgwidth="926"alt="commander in pending approval"src="https://user-images.githubusercontent.com/102745725/178962735-84f1ae00-df4c-4fed-adf5-12fefeb94e9f.png">
281
278
282
-
- 1 You can now decide to manually open this PR by checking the box next to it
283
-
284
-
- 1 Navigate to the `Pull requests` section to review the generated PR and merge it to the repo.
285
-
279
+
5. You can now decide to manually open this PR by checking the box next to it
280
+
6. Navigate to the `Pull requests` section to review the generated PR and merge it to the repo.
286
281
287
282
**Congratulations! You are now familiar with Renovate’s Dependency Dashboard.** 🎈
288
283
289
-
## What have we learned so far:
290
-
- How to install Renovate
291
-
- Onboarding Renovate by reviewing, configuring, and merging the onboarding PR
292
-
- How to update a dependency with Renovate
293
-
- How to utilize the Dependency Dashboard
284
+
## What you learned:
285
+
286
+
- How to install Renovate
287
+
- Onboarding Renovate by reviewing, configuring, and merging the onboarding PR
288
+
- How to update a dependency with Renovate
289
+
- How to utilize the Dependency Dashboard
294
290
295
291
### General Comments:
296
-
- Granting access to all repositories or change repo selections can be modified at any time on the [Renovate App GitHub page](https://github.com/apps/renovate).
297
-
- Renovate configuration can be modified by manual configurations, global organization configurations and existing Renovate presets.
298
292
299
-
### Congratulations! You have successfully completed Renovate’s hands-on tutorial and have taken your first steps to automate dependency updates in your projects.
293
+
- Granting access to all repositories or change repo selections can be modified at any time on the [Renovate App GitHub page](https://github.com/apps/renovate).
294
+
- Renovate configuration can be modified by manual configurations, global organization configurations and existing Renovate presets.
295
+
296
+
### Congratulations!
300
297
301
-
### Now, it's time to configure Renovate on the rest of your repositories and let Renovate manage your dependencies' health.
298
+
You have successfully completed Renovate’s hands-on tutorial and have taken your first steps to automate dependency updates in your projects.
299
+
Now, it's time to configure Renovate on the rest of your repositories and let Renovate manage your dependencies' health.
302
300
303
301
### Upcoming Tutorials:
304
302
305
-
We have more advanced Renovate tutorials in the pipeline and will post updates when they are published.
303
+
We're working on more advanced Renovate tutorials and will post updates when we publish new tutorials.
0 commit comments