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

ci: bring more automation #24

Merged
merged 1 commit into from
Mar 10, 2025
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
66 changes: 66 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
categories:
- title: "⚠️ Breaking changes"
labels:
- "kind/major"
- "kind/breaking-change"
- title: "🚀 Features"
labels:
- "kind/enhancement"
- "kind/feature"
- title: "🐛 Bug Fixes"
labels:
- "kind/bug"
- title: "🧰 Maintenance"
labels:
- "kind/chore"
- "area/dependencies"

exclude-labels:
- duplicate
- invalid
- later
- wontfix
- kind/question
- release/skip-changelog

change-template: "- $TITLE (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
name-template: "v$RESOLVED_VERSION"
template: |
$CHANGES

autolabeler:
# Tag any PR with "!" in the subject as major update. In other words, breaking change
- label: "kind/breaking-change"
title: "/.*!:.*/"
- label: "area/dependencies"
title: "chore(deps)"
- label: "area/dependencies"
title: "fix(deps)"
- label: "area/dependencies"
title: "build(deps)"
- label: "kind/feature"
title: "feat"
- label: "kind/bug"
title: "fix"
- label: "kind/chore"
title: "chore"

version-resolver:
major:
labels:
- "kind/major"
- "kind/breaking-change"
minor:
labels:
- "kind/minor"
- "kind/feature"
- "kind/enhancement"
patch:
labels:
- "kind/patch"
- "kind/fix"
- "kind/bug"
- "kind/chore"
- "area/dependencies"
default: patch
37 changes: 37 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Drafter

on:
workflow_dispatch:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize, edited]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
types: [opened, reopened, synchronize, edited]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 9 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"extends": [
"config:base",
"group:allNonMajor",
"schedule:earlyMondays"
"github>kubewarden/github-actions//renovate-config/policies"
],
"labels": ["dependencies"]
"packageRules": [
{
"description": "Update GitHub Actions",
"matchManagers": ["github-actions"],
"groupName": "github-actions",
"groupSlug": "github-actions"
}
]
}
Loading