Skip to content

Commit daf305f

Browse files
authored
Improve first tutorial (#4)
1 parent b686e80 commit daf305f

1 file changed

Lines changed: 57 additions & 62 deletions

File tree

README.md

Lines changed: 57 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Renovate - Hands On Tutorial
22

3-
43
## Introduction
54

65
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
1514

1615
What you will learn:
1716

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
2221

2322
We will begin this tutorial with configuring and installing the Renovate app and an overview of the default settings and basic functionalities.
2423

@@ -28,15 +27,15 @@ Later, we will dive deeper into functional use-cases, advanced features, and `be
2827

2928
Let’s start by forking the tutorial repo to your account, installing the Renovate GitHub App, and configuring it to your repo.
3029

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:
3433
- Install the Renovate App to your account by navigating to the [Renovate App GitHub installation page](https://github.com/apps/renovate) and select Install:
3534
![image](https://user-images.githubusercontent.com/102745725/178965463-525a385e-d914-4309-aeb4-cb4358dc12bc.png)
36-
-1 If you do have Renovate installed:
35+
1. If you do have Renovate installed:
3736
- navigate to the [Renovate app page](https://github.com/apps/renovate) and select configure:
3837
![image](https://user-images.githubusercontent.com/42116482/178491021-a0b7ba34-3bc7-4953-8452-416fbd3d6ec9.png)
39-
- 1 You will reach an installation configuration page where you are asked to configure Repository Access.
38+
1. You will reach an installation configuration page where you are asked to configure Repository Access.
4039

4140
> **Note**
4241
> for existing users, installation configuration appears at the bottom of the page.
@@ -47,12 +46,12 @@ Let’s start by forking the tutorial repo to your account, installing the Renov
4746
> each selected repo gets an onboarding PR.
4847

4948
If you select `All repositories`, forked repos will be skipped by default (including RenovateTutorial).
50-
- click on `Install` (“Save” for existing users)
49+
- Click on `Install` (“Save” for existing users)
5150

5251
<img width="629" alt="configuration page" src="https://user-images.githubusercontent.com/102745725/178964980-df55dafd-f087-433a-90f7-986fa01c1ac0.png">
5352

53+
For new installs:
5454

55-
For new installs:
5655
- You will be redirected to our “Thank you for installing Renovate” page while we are setting up your account.
5756

5857
![image](https://user-images.githubusercontent.com/42116482/178492276-ac0f5c03-db21-482c-95e9-07dc229ac298.png)
@@ -65,7 +64,7 @@ For new installs:
6564

6665
## Part 2 - Onboarding
6766

68-
Now that you have Renovate installed, we can begin onboarding.
67+
Now you have installed Renovate, we can begin onboarding.
6968

7069
Let’s review the concepts of the Onboarding PR and learn about Renovate’s initial settings.
7170

@@ -76,8 +75,9 @@ Let’s review the concepts of the Onboarding PR and learn about Renovate’s in
7675
- This PR is there to help you understand Renovate and its default settings before Renovate starts running on your repository.
7776
- The Onboarding PR creates a configuration file called `renovate.json`, which contains Renovate’s default settings and can be modified during onboarding.
7877

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`
8181

8282
<img width="1500" alt="onboarding PR" src="https://user-images.githubusercontent.com/102745725/178965966-76aa3941-cac4-4df3-bd89-75b9f8002924.png">
8383

@@ -112,31 +112,31 @@ Example
112112
As a user, despite Renovate’s suggestion to limit hourly PR creation to 2, we might want to increase the limit to a different number.
113113
Let’s try changing this hourly limitation to 3:
114114

115-
- 1 Go to the newly created branch - `renovate/configure`:
115+
1. Go to the newly created branch - `renovate/configure`:
116116

117117
<img width="763" alt="new branch" src="https://user-images.githubusercontent.com/102745725/178966974-35c089c6-4190-4721-b1c2-956d84e80d07.png">
118118

119-
- 1 Go into the `renovate.json` file:
119+
2. Go into the `renovate.json` file:
120120

121121
![image](https://user-images.githubusercontent.com/42116482/178494908-89189f2e-632a-42ee-a49a-16941a40101b.png)
122122

123-
- 1 Add the following code segment:
123+
3. Add the following code segment:
124124
```json
125125
{
126126
"prHourlyLimit": 3
127127
}
128128
```
129129
<img width="591" alt="change in config 1" src="https://user-images.githubusercontent.com/102745725/178967120-51ec5940-42bc-444e-8c4d-b98ea4ee5948.png">
130130

131-
- 1 Commit the changes
132-
- 1 Revisit the onboarding PR and notice how the onboarding PR automatically updates to reflect the changes you made to the configuration
131+
4. Commit the changes
132+
5. Revisit the onboarding PR and notice how the onboarding PR automatically updates to reflect the changes you made to the configuration
133133

134134
<img width="830" alt="onboarding warning hourly update" src="https://user-images.githubusercontent.com/102745725/178960884-40077a5c-8fe1-422f-81c1-567ea1e6619b.png">
135135

136136
> **Note**
137137
> May take a few moments to update.
138138
139-
- 1 Merge the onboarding pull request.
139+
6. Merge the onboarding pull request.
140140

141141
**Congratulations! You have successfully onboarded Renovate.** 🎈
142142

@@ -153,11 +153,12 @@ Here we will review the basic concepts of Renovate update PRs and merge it.
153153
- You should already see notifications for these pull requests in the `Pull Requests` section of the repo.
154154

155155
Let’s go ahead and take a look at a Renovate update PR:
156-
- 1 Navigate to the `Pull requests` section and open - `Update dependency lodash to x.y.z`
156+
1. Navigate to the `Pull requests` section and open - `Update dependency lodash to x.y.z`
157157

158158
<img width="1256" alt="open PRs" src="https://user-images.githubusercontent.com/102745725/178967929-690b3866-190b-4576-a961-981ce78cbd1b.png">
159159

160160
### Each update PR contains:
161+
161162
- Dependency information (name and version changes)
162163
- [Merge Confidence](https://docs.renovatebot.com/merge-confidence/) values
163164
- Up-to-date release notes
@@ -171,7 +172,7 @@ Let’s go ahead and take a look at a Renovate update PR:
171172

172173
<img width="1488" alt="file diff lodash" src="https://user-images.githubusercontent.com/102745725/178968020-865560f7-173c-4e9e-a073-488147dbb137.png">
173174

174-
- 1 Merge this pull request
175+
1. Merge this pull request
175176

176177
>Note - Renovate is highly configurable and supports:
177178
>
@@ -193,9 +194,9 @@ In this section, we will go over some of its main functionalities and capabiliti
193194
Let’s begin by creating and enabling the Dependency Dashboard.
194195
Since GitHub defaults to disable `issues` on forked repositories, we need to enable it on the forked RenovateTutorial repo:
195196

196-
- 1 Go to the main page of the repo
197-
- 1 Go to `settings` -> `general`
198-
- 1 Check the `issues` checkbox under the Features section:
197+
1. Go to the main page of the repo
198+
1. Go to `settings` -> `general`
199+
1. Check the `issues` checkbox under the Features section:
199200

200201
<img width="1284" alt="issues settings" src="https://user-images.githubusercontent.com/102745725/178968523-fb002cf1-2510-4b4f-b840-f9776e660d92.png">
201202

@@ -204,17 +205,15 @@ Since GitHub defaults to disable `issues` on forked repositories, we need to ena
204205
> **Note**
205206
> This is usually done in a click via the Dependency Dashboard.
206207
207-
208-
- 1 Go to the `Pull requests` section
209-
- 1 Select `Update dependency php to v8.1` and select `Close pull request`
208+
1. Go to the `Pull requests` section
209+
2. Select `Update dependency php to v8.1` and select `Close pull request`
210210

211211
<img width="927" alt="close php" src="https://user-images.githubusercontent.com/102745725/178969009-7239db99-4abe-44d1-a86c-a0effdf6fb7a.png">
212212

213-
- 1 This will trigger Renovate to run and the Dependency Dashboard will appear under the `Issues` section - navigate to it
213+
3. This will trigger Renovate to run and the Dependency Dashboard will appear under the `Issues` section - navigate to it
214214

215215
> **Note**
216-
> it may take a minute to appear.
217-
216+
> It may take a minute to appear.
218217
219218
### The Dependency Dashboard includes:
220219
- Overview of all updates that are still to-do:
@@ -236,24 +235,23 @@ You can also re-run the Renovate bot manually directly from the Dependency Dashb
236235

237236
<img width="867" alt="rerun renovate" src="https://user-images.githubusercontent.com/102745725/178969114-c1b64333-b45a-4508-b638-1e25ad0adab5.png">
238237

239-
240-
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**.
241239

242240
Say we want to take extra measures before updating major versions of a package (either to reduce noise or to handle it more carefully).
243241
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.
244242

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.
246244

247245
> **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.
249247
250248
<img width="928" alt="commander in Rate Limited" src="https://user-images.githubusercontent.com/102745725/178960104-c254c12f-08fb-4508-824d-20df60b2290f.png">
251249

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.
253251

254-
In order to limit all major updates to on-demand creation:
252+
In order to limit all `major` updates to on-demand creation:
255253

256-
- 1 Add this code segment to your `renovate.json` file:
254+
1. Add this code segment to your `renovate.json` file:
257255
```json
258256
"packageRules": [
259257
{
@@ -265,44 +263,44 @@ In order to limit all major updates to on-demand creation:
265263

266264
<img width="924" alt="change in config - pending approval" src="https://user-images.githubusercontent.com/102745725/178962677-612e8172-fac7-45fb-937b-46a559d848f0.png">
267265

268-
- 1 Commit the changes
266+
2. Commit the changes
269267

270268
> **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.
274270
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
276273

277274
> **Note**
278275
> it make take a minute to complete Renovate's run
279276
280277
<img width="926" alt="commander in pending approval" src="https://user-images.githubusercontent.com/102745725/178962735-84f1ae00-df4c-4fed-adf5-12fefeb94e9f.png">
281278

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.
286281

287282
**Congratulations! You are now familiar with Renovate’s Dependency Dashboard.** 🎈
288283

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
294290

295291
### 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.
298292

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!
300297

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.
302300

303301
### Upcoming Tutorials:
304302

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.
306304

307305
What’s coming next:
308306

@@ -312,9 +310,6 @@ What’s coming next:
312310
- Grouping
313311
- Schedule
314312
- Package Rules
315-
- GitHub actions
313+
- GitHub Actions
316314
- PR Assignees and PR reviewers
317315
- Regex Managers
318-
319-
320-

0 commit comments

Comments
 (0)