Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): Add renovate & update github labeler #32

Merged
merged 10 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
server:
application-server:
- changed-files:
- any-glob-to-any-file: server/**
- any-glob-to-any-file: server/application-server/**

notification-server:
- changed-files:
- any-glob-to-any-file: server/notification/**

webhook-listener:
- changed-files:
- any-glob-to-any-file: server/webhook-listener/**

client:
- changed-files:
Expand Down
146 changes: 146 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"labels": [
"dependencies"
],
"baseBranches": ["main"],
"rebaseWhen": "conflicted",
"prHourlyLimit": 10,
"packageRules": [
{
"matchPaths": [
"server/application-server/**"
],
"labels": [
"application-server"
]
},
{
"matchPaths": [
"server/notification/**"
],
"labels": [
"notification-server"
]
},
{
"matchPaths": [
"server/webhook-listener/**"
],
"labels": [
"webhook-listener"
]
},
{
"matchPaths": [
"client/**"
],
"labels": [
"client"
]
},
{
"matchPaths": [
"docs/**"
],
"labels": [
"documentation"
]
},
{
"matchDatasources": [
"docker"
],
"labels": [
"docker"
]
},
{
"matchPackagePatterns": [
"*"
],
"matchPaths": [
"server/application-server/**"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"groupName": "all non-major application-server dependencies",
"groupSlug": "all-minor-patch-application-server"
},
{
"matchPackagePatterns": [
"*"
],
"matchPaths": [
"server/notification/**"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"groupName": "all non-major notification-server dependencies",
"groupSlug": "all-minor-patch-notification-server"
},
{
"matchPackagePatterns": [
"*"
],
"matchPaths": [
"server/webhook-listener/**"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"groupName": "all non-major webhook-listener dependencies",
"groupSlug": "all-minor-patch-webhook-listener"
},
{
"matchPackagePatterns": [
"*"
],
"matchPaths": [
"client/**"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"groupName": "all non-major client dependencies",
"groupSlug": "all-minor-patch-client"
},
{
"matchPackagePatterns": [
"*"
],
"matchPaths": [
"docs/**"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"groupName": "all non-major documentation dependencies",
"groupSlug": "all-minor-patch-documentation"
},
{
"matchPackagePatterns": [
"*"
],
"matchPaths": [
".github/workflows/**"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"groupName": "all non-major github-actions dependencies",
"groupSlug": "all-minor-patch-github-actions"
}
]
}
33 changes: 33 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Renovate Bot

on:
workflow_dispatch:
schedule:
# Runs Renovate daily at 11 AM
- cron: "0 11 * * *"
push:
branches:
- main
paths:
- ".github/renovate.json"
- ".github/workflows/renovate.yml"

concurrency: renovate
jobs:
renovate:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Run Renovate
uses: renovatebot/[email protected]
with:
configurationFile: ".github/renovate.json"
token: ${{ secrets.RENOVATE_TOKEN }}
env:
LOG_LEVEL: 'debug'
RENOVATE_REPOSITORIES: ${{ github.repository }}
RENOVATE_ONBOARDING: "false"
RENOVATE_COMMIT_MESSAGE_PREFIX: "chore(deps):"