Skip to content

Commit

Permalink
feat(ci): Add renovate & update github labeler (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
egekocabas authored Nov 19, 2024
1 parent 7a94b46 commit b28747c
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 2 deletions.
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):"

0 comments on commit b28747c

Please sign in to comment.