Skip to content

Commit 4db797a

Browse files
committed
👷 ci: add dependabot and release-drafter [no ci]
Signed-off-by: Haili Zhang <[email protected]>
1 parent a59f3ec commit 4db797a

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: npm
9+
directory: '/'
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 10
13+
labels:
14+
- 'type: dependencies'
15+
- package-ecosystem: 'github-actions'
16+
directory: '/'
17+
schedule:
18+
interval: 'daily'

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
template: |
4+
# What's Changed
5+
6+
$CHANGES
7+
8+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
9+
10+
categories:
11+
- title: '💥 Breaking'
12+
label: 'type: breaking'
13+
- title: '✨ New'
14+
label: 'type: feature'
15+
- title: '🐛 Bug Fixes'
16+
label: 'type: bug'
17+
- title: '🏗️ Maintenance'
18+
label: 'type: maintenance'
19+
- title: '👷 CI/CD'
20+
label: 'type: cicd'
21+
- title: '📝 Documentation'
22+
label: 'type: docs'
23+
- title: 'Other changes'
24+
- title: '🏷️ Dependency Updates'
25+
label: 'type: dependencies'
26+
collapse-after: 5
27+
28+
version-resolver:
29+
major:
30+
labels:
31+
- 'type: breaking'
32+
minor:
33+
labels:
34+
- 'type: feature'
35+
patch:
36+
labels:
37+
- 'type: bug'
38+
- 'type: maintenance'
39+
- 'type: docs'
40+
- 'type: dependencies'
41+
- 'type: cicd'
42+
43+
exclude-labels:
44+
- 'skip-changelog'

.github/workflows/draft.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)