Skip to content

Commit

Permalink
feat: support release drafter (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng authored Jan 13, 2024
1 parent 5b7a1d7 commit c4d4c3f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_extends: .github
16 changes: 16 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Drafter

on:
push:
branches:
- "main"
workflow_dispatch:

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into the default branch
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.CPP_LINTER_TOKEN }}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -10,11 +10,11 @@ repos:
- id: check-toml
- id: requirements-txt-fixer
- repo: https://github.com/asottile/pyupgrade
rev: v2.36.0
rev: v3.15.0
hooks:
- id: pyupgrade
- repo: https://github.com/pycqa/flake8
rev: '4.0.1'
rev: '7.0.0'
hooks:
- id: flake8
args: [--max-line-length=120]
Expand Down

0 comments on commit c4d4c3f

Please sign in to comment.