Skip to content

Commit

Permalink
chore: change release notes template, auto label PRs, ... (#893)
Browse files Browse the repository at this point in the history
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
  • Loading branch information
hilmarf authored Aug 26, 2024
1 parent af85d97 commit d314584
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 1 deletion.
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
---

<!-- 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.

0 comments on commit d314584

Please sign in to comment.