Skip to content

Commit

Permalink
replace dependabot with renovate (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
ITProKyle authored Sep 11, 2024
1 parent 2d44c20 commit 95d2b1a
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 58 deletions.
27 changes: 0 additions & 27 deletions .github/dependabot.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
- name: release
color: e4e669
description: A release task or pull request
- name: renovate
color: 73afae # cspell:disable-line
description: Issue or PR opened by renovate
- name: status:abandoned
color: '000000'
description: Issue or pull request abandoned by author
Expand Down
30 changes: 0 additions & 30 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,16 @@ autolabeler: # cspell:ignore autolabeler
branch: [/^(bug|bugfix|fix|hotfix)\/.*/]
- label: changelog:skip
branch: [/^(dependabot)\/.*/, /^pre-commit-ci-update-config/, /^renovate\/.*lockfile/]
- label: cloudformation
files:
- '**/templates/*.json'
- '**/templates/*.template'
- '**/templates/*.yaml'
- '**/templates/*.yml'
- label: dependencies
branch: [/^(dep|depend|dependabot|deps|renovate)\/.*/]
- label: documentation
branch: [/^(docs)\/.*/]
- label: feature
branch: [/^(enhancement|feat|feature)\/.*/]
- label: github_actions
files:
- .github/workflows/*.yml
- label: javascript
files:
- '**/*.js'
- '**/package-lock.json'
- '**/package.json'
- label: maintenance
branch: [/^(chore|maint|maintain|maintenance)\/.*/]
- label: npm
files:
- npm/.npmignore
- npm/postinstall.js
- npm/preuninstall.js
- label: changelog:patch
branch: [/^(bug|bugfix|fix|hotfix)\/.*/]
- label: poetry
files:
- poetry.lock
- poetry.toml
- pyproject.toml
- label: python
files:
- '**/*.py'
- poetry.lock
- pyproject.toml
- setup.cfg
- label: release
branch: [/^(release)\/.*/]
categories:
Expand Down
153 changes: 153 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"configMigration": true,
"dependencyDashboardLabels": [
"renovate"
],
"extends": [
":dependencyDashboard",
":prImmediately",
":maintainLockFilesWeekly",
":rebaseStalePrs",
":renovatePrefix",
"config:recommended"
],
"ignorePaths": [
"**/infrastructure/public/common/**",
"**/node_modules/**",
"**/runway/cfngin/hooks/staticsite/auth_at_edge/templates/**",
"**/runway/templates/**",
"**/tests/**"
],
"packageRules": [
{
"addLabels": [
"changelog:skip"
],
"description": "add labels - dev-dependencies",
"matchDepTypes": [
"dev",
"devDependencies",
"dev-dependencies",
"docs",
"lint",
"linters",
"test"
],
"prPriority": -1
},
{
"automerge": true,
"automergeType": "pr",
"description": "group all `cspell` related packages together and enable automerge",
"groupName": "cspell",
"matchManagers": [
"npm"
],
"matchPackageNames": [
"/^@.*/cspell-.*/",
"cspell"
],
"matchPackagePrefixes": [
"@cspell/",
"cspell-"
]
},
{
"addLabels": [
"changelog:skip"
],
"automerge": true,
"automergeType": "pr",
"description": "automerge devcontainer updates",
"matchManagers": [
"devcontainer"
]
},
{
"addLabels": [
"changelog:skip"
],
"automerge": true,
"automergeType": "pr",
"description": "automerge github actions and runner updates",
"matchManagers": [
"github-actions"
]
},
{
"addLabels": [
"changelog:skip"
],
"automerge": true,
"automergeType": "pr",
"description": "automerge lockfile updates",
"gitLabIgnoreApprovals": true,
"matchUpdateTypes": [
"lockFileMaintenance"
],
"platformAutomerge": true
},
{
"description": "keep v0.x dependencies updated",
"matchCategories": [
"python"
],
"matchDepTypes": [
"dependencies"
],
"matchPackageNames": [
"pyhcl"
],
"rangeStrategy": "bump"
},
{
"automerge": true,
"automergeType": "pr",
"description": "npm - bump & automerge",
"matchManagers": [
"npm"
],
"platformAutomerge": true,
"rangeStrategy": "bump"
},
{
"automerge": false,
"automergeType": "pr",
"description": "npm - disable automerge & set rangeStrategy to auto for main dependencies",
"matchDepTypes": [
"dependencies"
],
"matchManagers": [
"npm"
],
"rangeStrategy": "auto"
},
{
"automerge": true,
"automergeType": "pr",
"description": "poetry - bump & automerge",
"matchManagers": [
"poetry"
],
"platformAutomerge": true,
"rangeStrategy": "bump"
},
{
"automerge": false,
"automergeType": "pr",
"description": "poetry - disable automerge & set rangeStrategy to auto for main dependencies",
"matchDepTypes": [
"dependencies"
],
"matchManagers": [
"poetry"
],
"rangeStrategy": "auto"
}
],
"platformAutomerge": true,
"semanticCommits": "disabled",
"separateMinorPatch": false,
"separateMultipleMajor": true
}
2 changes: 1 addition & 1 deletion .github/workflows/label-maker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
label-maker:
# Skip running the job from forks.
if: github.repository == 'rackspace/runway' && github.actor != 'dependabot[bot]'
if: github.repository == 'rackspace/runway' && !endswith(github.actor, '[bot]')
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
Expand Down

0 comments on commit 95d2b1a

Please sign in to comment.