Skip to content

Commit

Permalink
add Renovate config (#5)
Browse files Browse the repository at this point in the history
* Update Renovate configuration and workflow

* Refactor GitHub Actions workflows and dependencies

* Refactor dependabot.yml and remove unused configuration file

* Refactor Renovate configuration and disable updating pinned dependencies
  • Loading branch information
Adammatthiesen authored Dec 20, 2024
1 parent 39d0fa4 commit db9d97e
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 32 deletions.
20 changes: 0 additions & 20 deletions .github/dependabot.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:best-practices",
"schedule:earlyMondays",
":preserveSemverRanges",
"customManagers:biomeVersions"
],
"dependencyDashboard": true,
"postUpdateOptions": ["pnpmDedupe"],
"ignorePaths": ["**/node_modules/**", "**/bower_components/**"],
"labels": ["dependencies"],
"additionalBranchPrefix": "{{parentDir}}-",
"gitIgnoredAuthors": ["[email protected]"],
"prHourlyLimit": 3,
"rangeStrategy": "bump",
"updatePinnedDependencies": false,
"packageRules": [
{
"matchDepTypes": ["peerDependencies"],
"enabled": false
},
{
"matchDepTypes": ["packageManager", "engines"],
"enabled": false
},
{
"matchFileNames": [".node-version"],
"enabled": false
}
]
}
15 changes: 4 additions & 11 deletions .github/workflows/ci-first-contributor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
issue-message: >
Hi @${{ github.event.issue.user.login }} 👋
Welcome to the StudioCMS project! We're excited to have you here. Thanks for opening your first issue! 🎉
Welcome to the StudioCMS project eco-system! We're excited to have you here. Thanks for opening your first issue! 🎉
If you are reporting a bug, please make sure to include the following information in your issue:
- A clear description of the issue
Expand All @@ -38,8 +38,8 @@ jobs:
- The StudioCMS Team
pr-opened-message: >
Hello @${{ github.event.pull_request.user.login }}, and thank you for opening your first pull request to StudioCMS! 🎉
pr-message: >
Hello @${{ github.event.pull_request.user.login }}, and thank you for opening your first pull request to the StudioCMS Ecosystem! 🎉
Please make sure to review the project's [Contributing Guide](https://github.com/withstudiocms/.github/blob/main/CONTRIBUTING.md) to ensure your pull request meets our quality standards.
Expand All @@ -50,11 +50,4 @@ jobs:
Our team will review your pull request as soon as possible. If you have any questions or need help, feel free to ask. We're here to help you! 🚀
In the meantime, you will notice that a few checks will run on your pull request. These checks are automated and help us ensure that your changes meet our quality standards. If you see any errors or warnings, don't worry! Our team will help you address them. 😊
pr-merged-message: >
**Congrats and Welcome** @${{ github.event.pull_request.user.login }} to the Contributor Squad! 🎉
If you haven't already, please join our [Discord community](https://chat.studiocms.dev) to stay in the loop for any future help we may need!
- The StudioCMS Team
In the meantime, you will notice that a few checks will run on your pull request. These checks are automated and help us ensure that your changes meet our quality standards. If you see any errors or warnings, don't worry! Our team will help you address them. 😊
20 changes: 20 additions & 0 deletions .github/workflows/ci-renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Add changeset to Renovate updates

on:
pull_request_target:
types: [opened, synchronize, labeled]

jobs:
renovate:
name: Update Renovate PR
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'dependencies')

steps:
- name: Update PR
uses: mscharley/dependency-changesets-action@b73462eb4c2cf1fe16a8d9d681932fd05eea5c9f # v1.1.1
with:
token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }}
use-conventional-commits: true
author-name: StudioCMS
author-email: [email protected]
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
},
"editor.defaultFormatter": "biomejs.biome",
"editor.gotoLocation.multipleDefinitions": "goto",
"cSpell.words": ["studiocms", "withstudiocms"]
"cSpell.words": ["mergebot", "studiocms", "withstudiocms"]
}

0 comments on commit db9d97e

Please sign in to comment.