Skip to content

Commit

Permalink
Add Release drafter and PR labeler (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Feb 11, 2021
1 parent 9e2deb7 commit fd29f59
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
feature: ['feature/*', 'feat/*']
enhancement: ['enhancement/*','enh/*']
bug: fix/*
chore: 'chore/*'
dependencies: deps/*
documentation: docs/*
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'
categories:
- title: '🚀 Features'
labels:
- "feature"
- "enhancement"
- title: '💣 Breaking Change'
labels:
- "change"
- title: '🐛 Bug Fixes'
labels:
- "bug"
- title: '📝 Documentation'
labels:
- "documentation"
- title: '🔨 Maintenance'
labels:
- "chore"
- "dependencies"
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
exclude-labels:
- 'skip-changelog'
template: |
## New in NGINX Plus Integration with Cloud Autoscaling v$RESOLVED_VERSION
$CHANGES
## Resources
- Documentation -- https://github.com/nginxinc/nginx-asg-sync/blob/v$RESOLVED_VERSION/README.md
12 changes: 12 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PR Labeler
on:
pull_request:
types: [opened]

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release Drafter

on:
push:
branches:
- master

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

0 comments on commit fd29f59

Please sign in to comment.