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

chore: change release notes template, auto label PRs, ... #893

Merged
merged 6 commits into from
Aug 26, 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
4 changes: 4 additions & 0 deletions .github/config/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
feature: ['feature/*', 'feat/*']
fix: fix/*
chore :hammer:: chore/*
dependencies: ['dependencies/*', 'dependabot/*']
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
labels: kind/skip-release-notes
frewilhelm marked this conversation as resolved.
Show resolved Hide resolved
---

<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

Expand Down
26 changes: 25 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,28 @@ template: |

$CHANGES
exclude-labels:
- 'kind/skip-release-notes'
- 'kind/skip-release-notes'
- 'wontfix'
- 'triage/wont-fix'
- 'triage/invalid'
categories:
- title: '🚀 Features'
labels:
- 'kind/enhancement'
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
collapse-after: 5
labels:
- 'kind/bug'
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
collapse-after: 3
labels:
- 'chore'
- title: '⬆️ Dependencies'
collapse-after: 3
labels:
- 'dependencies'
26 changes: 26 additions & 0 deletions .github/workflows/pr-labeler-kind.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PR Labeler
on:
pull_request:
types: [opened]

permissions:
contents: read

jobs:
pr-labeler:
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OCMBOT_APP_ID }}
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
- name: Label PR based on branch name
uses: TimonVS/pr-labeler-action@v5
with:
repo-token: ${{ steps.generate_token.outputs.token }}
configuration-path: .github/config/pr-labeler.yml
File renamed without changes.
Loading