Add PR labeler and release drafter GitHub Actions
Signed-off-by: Dan Yeaw <dan@yeaw.me>
This commit is contained in:
parent
2a975f55fc
commit
6c2832d2b4
4
.github/pr-labeler.yml
vendored
Normal file
4
.github/pr-labeler.yml
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
feature: ['feature/*', 'feat/*']
|
||||
fix: fix/*
|
||||
chore: chore/*
|
||||
skip-changelog: ['sourcery/*', 'dependabot/*']
|
31
.github/release-drafter.yml
vendored
Normal file
31
.github/release-drafter.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name-template: 'Version $NEXT_PATCH_VERSION - Summary Here🌈'
|
||||
tag-template: 'v$NEXT_PATCH_VERSION'
|
||||
exclude-labels:
|
||||
- 'skip-changelog'
|
||||
categories:
|
||||
- title: '🚀 Features'
|
||||
labels:
|
||||
- 'feature'
|
||||
- 'enhancement'
|
||||
- title: '🐛 Bug Fixes'
|
||||
labels:
|
||||
- 'fix'
|
||||
- 'bugfix'
|
||||
- 'bug'
|
||||
- title: '🧰 Maintenance'
|
||||
label: 'chore'
|
||||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
||||
template: |
|
||||
## Changes
|
||||
|
||||
$CHANGES
|
||||
|
||||
Thanks again to $CONTRIBUTORS! 🎉
|
||||
no-changes-template: 'Changes are coming soon 😎'
|
||||
replacers:
|
||||
- search: '(?:and )?@dependabot(?:\[bot\])?,?'
|
||||
replace: ''
|
||||
- search: '(?:and )?@sourcery-ai-bot(?:\[bot\])?,?'
|
||||
replace: ''
|
||||
- search: '(?:and )?@allcontributors(?:\[bot\])?,?'
|
||||
replace: ''
|
13
.github/workflows/pr-labeler.yml
vendored
Normal file
13
.github/workflows/pr-labeler.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
name: PR Labeler
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
pr-labeler:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||
steps:
|
||||
- uses: TimonVS/pr-labeler-action@v3
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
15
.github/workflows/release-drafter.yml
vendored
Normal file
15
.github/workflows/release-drafter.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
|
||||
jobs:
|
||||
update-release-draft:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||
steps:
|
||||
# Drafts your next Release notes as Pull Requests are merged into "master"
|
||||
- uses: toolmantim/release-drafter@v5.11.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user