Skip to content

Commit b4e711f

Browse files
committed
Adding the release drafter action
this is the same release template as native SDKs with an added Dependency section where we can mention iOS and Android native SDK updates
1 parent 9395a70 commit b4e711f

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.github/release-drafter.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name-template: $RESOLVED_VERSION
2+
tag-template: $RESOLVED_VERSION
3+
categories:
4+
- title: 🚀 Features
5+
label: Enhancement / Feature
6+
- title: 🐛 Bug Fixes
7+
label: Bug
8+
- title: 🧰 Improvements
9+
label: Improvement
10+
- title: down arrow Dependency Updates
11+
label: Dependencies
12+
change-template: '- $TITLE (#$NUMBER)'
13+
version-resolver:
14+
major:
15+
labels:
16+
- 'major'
17+
minor:
18+
labels:
19+
- 'minor'
20+
patch:
21+
labels:
22+
- 'patch'
23+
default: patch
24+
template: |
25+
## Other Changes
26+
27+
$CHANGES

.github/workflows/release-drafter.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
name: Release Drafter
3+
4+
on:
5+
push:
6+
# branches to consider in the event; optional, defaults to all
7+
branches:
8+
- main
9+
# pull_request event is required only for autolabeler
10+
pull_request:
11+
# Only following types are handled by the action, but one can default to all as well
12+
types: [opened, reopened, synchronize]
13+
# pull_request_target event is required for autolabeler to support PRs from forks
14+
# pull_request_target:
15+
# types: [opened, reopened, synchronize]
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
update_release_draft:
22+
permissions:
23+
# write permission is required to create a github release
24+
contents: write
25+
# write permission is required for autolabeler
26+
# otherwise, read permission is required at least
27+
pull-requests: write
28+
runs-on: ubuntu-latest
29+
steps:
30+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
31+
#- name: Set GHE_HOST
32+
# run: |
33+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
34+
35+
# Drafts your next Release notes as Pull Requests are merged into "master"
36+
- uses: release-drafter/release-drafter@v5
37+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
38+
# with:
39+
# config-name: my-config.yml
40+
# disable-autolabeler: true
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)