Skip to content

Commit 3974f22

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 c0ed907 commit 3974f22

File tree

2 files changed

+70
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)