internal: Release note generation automation (#433)

This commit is contained in:
Taro L. Saito 2023-05-17 13:51:37 -07:00 committed by GitHub
parent b780eae3a4
commit f92925a4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 8 deletions

View File

@ -43,7 +43,7 @@ autolabeler:
- '*.md'
- label: 'feature'
title:
- '/(support|add)/i'
- '/(support|feature)/i'
- label: 'bug'
title:
- '/fix/i'

31
.github/release.yml vendored Normal file
View File

@ -0,0 +1,31 @@
changelog:
categories:
- title: '🔥 Breaking Changes'
labels:
- 'breaking'
- title: '👋 Deprecated'
labels:
- 'deprecation'
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '🔗 Dependency Updates'
labels:
- 'library-update'
- 'dependencies'
- title: '🛠 Internal Updates'
labels:
- 'internal'
- 'kaizen'
- 'test-library-update'
- 'sbt-plugin-update'
- title: '📚 Docs'
labels:
- 'doc'
- title: Other Changes
labels:
- "*"

View File

@ -1,9 +1,6 @@
name: Release Drafter
on:
push:
branches:
- master
# 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
@ -16,16 +13,15 @@ permissions:
contents: read
jobs:
update_release_draft:
update_PR_labels:
permissions:
# write permission is required to create a github release
contents: write
contents: read
# 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"
# Runs only pull-request labeler
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

18
.github/workflows/release-note.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Release Note
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
release:
name: Create a new release note
runs-on: ubuntu-latest
steps:
- name: Create a release note
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "$GITHUB_REF_NAME" --repo="$GITHUB_REPOSITORY" --generate-notes