Skip to content

Commit

Permalink
ci: add release drafter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicoulaud-ledger committed Sep 13, 2024
1 parent da98119 commit 1e90d32
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '️⚠️ Breaking changes'
labels:
- 'breaking'
- title: '🚀 Features'
labels:
- 'feat'
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🌈 Tech improvements'
labels:
- 'chore'
- 'tech'
- 'refactor'
- 'refactoring'
- 'ci'
- 'test'
- 'documentation'
- title: '🛠️ Dependency updates'
collapse-after: 3
labels:
- 'deps'
- 'dependencies'
- title: '🏗️ Infrastructure changes'
collapse-after: 3
labels:
- 'infra'
- 'deploy'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
exclude-labels:
- 'skip-changelog'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
- 'feat'
- 'feature'
- 'enhancement'
patch:
labels:
- 'patch'
default: patch
template: |
$CHANGES
31 changes: 31 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
changelog:

exclude:
labels:
# custom labels
- ci
- refactoring
- temp

categories:
- title: Features
labels:
- enhancement # standard github label
- title: Fixes
labels:
- bug # standard github label
- title: ! Breaking changes !
labels:
- breaking change # custom label
- title: Tech improvements
labels:
- tech # custom label
- title: Dependency updates
labels:
- dependencies # standard github label
- title: Documentation
labels:
- documentation # standard github label
- title: Other changes
labels:
- "*"
23 changes: 23 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release drafter

on:
push:
branches:
- master
pull_request:
types: [ opened, reopened, synchronize ]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ledgerhq-shared-small
steps:
- name: update release draft
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}

0 comments on commit 1e90d32

Please sign in to comment.