Skip to content

Commit fd29f59

Browse files
authored
Add Release drafter and PR labeler (#56)
1 parent 9e2deb7 commit fd29f59

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

.github/pr-labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
feature: ['feature/*', 'feat/*']
2+
enhancement: ['enhancement/*','enh/*']
3+
bug: fix/*
4+
chore: 'chore/*'
5+
dependencies: deps/*
6+
documentation: docs/*

.github/release-drafter.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- "feature"
7+
- "enhancement"
8+
- title: '💣 Breaking Change'
9+
labels:
10+
- "change"
11+
- title: '🐛 Bug Fixes'
12+
labels:
13+
- "bug"
14+
- title: '📝 Documentation'
15+
labels:
16+
- "documentation"
17+
- title: '🔨 Maintenance'
18+
labels:
19+
- "chore"
20+
- "dependencies"
21+
version-resolver:
22+
major:
23+
labels:
24+
- 'major'
25+
minor:
26+
labels:
27+
- 'minor'
28+
patch:
29+
labels:
30+
- 'patch'
31+
default: patch
32+
exclude-labels:
33+
- 'skip-changelog'
34+
template: |
35+
## New in NGINX Plus Integration with Cloud Autoscaling v$RESOLVED_VERSION
36+
37+
$CHANGES
38+
39+
## Resources
40+
41+
- Documentation -- https://github.com/nginxinc/nginx-asg-sync/blob/v$RESOLVED_VERSION/README.md

.github/workflows/pr-labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PR Labeler
2+
on:
3+
pull_request:
4+
types: [opened]
5+
6+
jobs:
7+
pr-labeler:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: TimonVS/pr-labeler-action@v3
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-drafter.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: release-drafter/release-drafter@master
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)