Skip to content

Commit

Permalink
chore: add release drafter (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
aimee-gm authored Sep 4, 2023
1 parent 38e14bb commit b63f3fe
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
template: |
## What’s Changed
$CHANGES
version-resolver:
major:
labels:
- major
- breaking change
minor:
labels:
- minor
- enhancement
patch:
labels:
- bug
- maintenance
default: patch
autolabeler:
- label: bug
title:
- "/fix/i"
- label: maintenance
title:
- "/perf/i"
- "/refactor/i"
- "/style/i"
- "/test/i"
- "/build/i"
- "/chore/i"
- "/ci/i"
- label: enhancement
title:
- "/feat/i"
- label: breaking change
title:
- "/breaking change/i"
body:
- "/breaking change/i"
17 changes: 17 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release drafter
on:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize]

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b63f3fe

Please sign in to comment.