-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from humanmade/dependabot-guide
Add dependabot guide
- Loading branch information
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Automating Updates | ||
|
||
The recommended approach to automating updates to Altis is to use GitHub's Dependabot feature. This feature is provided for free by GitHub. | ||
|
||
The service monitors the dependencies in your project and creates automatic pull requests whenever there are updates. This will help you to keep your projects healthy and always running the latest patch release of all Altis modules. | ||
|
||
## Setting Up Dependabot | ||
|
||
To get started create a `dependabot.yml` file in your project root. | ||
|
||
The minimum recommended configuration for Altis is as follows: | ||
|
||
```yaml | ||
version: 2 | ||
updates: | ||
# Enable version updates for Composer | ||
- package-ecosystem: "composer" | ||
# Look for `composer.json` and `composer.lock` files in the `root` directory | ||
directory: "/" | ||
# Create pull requests as soon as updates are made available | ||
schedule: | ||
interval: "live" | ||
# Increase the version requirements for Composer | ||
# only when required | ||
versioning-strategy: increase-if-necessary | ||
``` | ||
Finally commit this file to your repo, and you're done. | ||
## Further Configuration | ||
There are many more configuration options available and you can add additional update rules for different package ecosystems like npm to this file as well. | ||
[The full Dependabot configuration documentation can be found here](https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates). |