Skip to content

Commit

Permalink
Add Release drafter and PR labeler (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Sep 15, 2021
1 parent 56ceb31 commit 4e661dd
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- "enhancement"
- title: '💣 Breaking Change'
labels:
- "change"
- title: '🐛 Bug Fixes'
labels:
- "bug"
- title: '📝 Documentation'
labels:
- "documentation"
- title: '🔨 Maintenance'
labels:
- "chore"
- title: '⬆️ Dependencies'
labels:
- "dependencies"
version-resolver:
major:
labels:
- 'change'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'bug'
- 'chore'
- 'dependencies'
- 'documentation'
default: patch
exclude-labels:
- 'skip-changelog'
autolabeler:
- label: 'documentation'
files:
- '*.md'
branch:
- '/docs{0,1}\/.+/'
- label: 'chore'
branch:
- '/chore\/.+/'
- label: 'bug'
branch:
- '/fix\/.+/'
title:
- '/fix/i'
- label: 'enhancement'
branch:
- '/enh\/.+/'
- '/enhancement\/.+/'
- '/feat\/.+/'
- '/feature\/.+/'
title:
- '/feat/i'
- label: 'dependencies'
branch:
- '/deps\/.+/'
template: |
## New in NGINX plugin for OpenTracing v$RESOLVED_VERSION
$CHANGES
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

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

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

0 comments on commit 4e661dd

Please sign in to comment.