Skip to content

Commit c4d4c3f

Browse files
authored
feat: support release drafter (#21)
1 parent 5b7a1d7 commit c4d4c3f

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.github/release-drafter.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_extends: .github

.github/workflows/release-drafter.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
workflow_dispatch:
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into the default branch
14+
- uses: release-drafter/release-drafter@v5
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.CPP_LINTER_TOKEN }}

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
3+
rev: v4.5.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -10,11 +10,11 @@ repos:
1010
- id: check-toml
1111
- id: requirements-txt-fixer
1212
- repo: https://github.com/asottile/pyupgrade
13-
rev: v2.36.0
13+
rev: v3.15.0
1414
hooks:
1515
- id: pyupgrade
1616
- repo: https://github.com/pycqa/flake8
17-
rev: '4.0.1'
17+
rev: '7.0.0'
1818
hooks:
1919
- id: flake8
2020
args: [--max-line-length=120]

0 commit comments

Comments
 (0)