Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit a80e50e

Browse files
committed
use release-drafter
1 parent 0fe2ce9 commit a80e50e

File tree

5 files changed

+107
-26
lines changed

5 files changed

+107
-26
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: 'npm' # See documentation for possible values
9+
directory: '/' # Location of package manifests
10+
schedule:
11+
interval: 'weekly'
12+
ignore:
13+
- dependency-name: '*'
14+
update-types: ['version-update:semver-patch']

.github/release-drafter.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name-template: 'v$RESOLVED_VERSION 🌈'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
label: 'feature'
6+
- title: '🐛 Bug Fixes'
7+
label: 'bug'
8+
- title: '♻️ Refactor'
9+
label: 'refactor'
10+
- title: '📝 Documentation'
11+
label: 'documentation'
12+
- title: '🧰 Maintenance'
13+
labels:
14+
- 'chore'
15+
- 'dependencies'
16+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
17+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
18+
version-resolver:
19+
major:
20+
labels:
21+
- 'major'
22+
minor:
23+
labels:
24+
- 'minor'
25+
patch:
26+
labels:
27+
- 'patch'
28+
default: patch
29+
template: |
30+
## Changes
31+
32+
$CHANGES
33+
autolabeler:
34+
- label: feature
35+
branch:
36+
- '/^feat(ure)?[/-].+/'
37+
- label: bug
38+
branch:
39+
- '/^fix[/-].+/'
40+
- label: refactor
41+
branch:
42+
- '/(refactor|refactoring)[/-].+/'
43+
- label: documentation
44+
branch:
45+
- '/doc(s|umentation)[/-].+/'
46+
- label: chore
47+
branch:
48+
- '/^chore[/-].+/'
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/automating-dependabot-with-github-actions
2+
name: Dependabot auto-merge
3+
on: pull_request
4+
5+
permissions:
6+
pull-requests: write
7+
contents: write
8+
9+
jobs:
10+
dependabot:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.actor == 'dependabot[bot]' }}
13+
steps:
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/fetch-metadata@v1.1.1
17+
with:
18+
github-token: '${{ secrets.GITHUB_TOKEN }}'
19+
- name: Enable auto-merge for Dependabot PRs
20+
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
21+
run: gh pr merge --auto --merge "$PR_URL"
22+
env:
23+
PR_URL: ${{github.event.pull_request.html_url}}
24+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# pull_request event is required only for autolabeler
8+
pull_request:
9+
# Only following types are handled by the action, but one can default to all as well
10+
types: [opened, reopened, synchronize]
11+
# pull_request_target event is required for autolabeler to support PRs from forks
12+
# pull_request_target:
13+
# types: [opened, reopened, synchronize]
14+
15+
jobs:
16+
update_release_draft:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: release-drafter/release-drafter@v5
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)