Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #152 from o19s/release-notes
Browse files Browse the repository at this point in the history
Automatically draft release notes
  • Loading branch information
jzonthemtn authored Apr 2, 2024
2 parents 4675360 + 247f2e2 commit d3121f0
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/draft-release-notes-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# The overall template of the release notes
template: |
Compatible with OpenSearch 2.12.0.
$CHANGES
# Setting the formatting and sorting for the release notes body
name-template: Version 0.0.11
change-template: '* $TITLE ([#$NUMBER]($URL))'
sort-by: merged_at
sort-direction: ascending
replacers:
- search: '##'
replace: '###'

categories:
- title: 'Breaking Changes'
labels:
- 'breaking change'
- title: 'Features'
labels:
- 'feature'
- title: 'Enhancements'
labels:
- 'enhancement'
- title: 'Bug Fixes'
labels:
- 'bug'
- title: 'Infrastructure'
labels:
- 'build'
- 'testing'
- title: 'Documentation'
labels:
- 'documentation'
- title: 'Maintenance'
labels:
- 'version compatibility'
- 'maintenance'
- title: 'Refactoring'
labels:
- 'refactor'
20 changes: 20 additions & 0 deletions .github/workflows/draft-release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Draft Release Notes

on:
push:
branches:
- main

jobs:
update_release_draft:
name: Update draft release notes
runs-on: ubuntu-latest
steps:
- name: Update draft release notes
uses: release-drafter/release-drafter@v5
with:
config-name: draft-release-notes-config.yml
name: Version 0.0.11
tag: 0.0.11
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d3121f0

Please sign in to comment.