From 83070be2590e20c5848291b859d33ba88da405c9 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sat, 13 Jan 2024 08:06:06 +0000 Subject: [PATCH 1/3] feat: support release drafter --- .github/release-drafter.yml | 1 + .github/workflows/release-drafter.yml | 16 ++++++++++++++++ .gitpod.yml | 10 ++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 .gitpod.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..ad06f98 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1 @@ +_extends: .github \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..0d16ba5 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -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 }} \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..6fba074 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,10 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: pip install . + + From 61ae2ae5aa40a6b8e82aaae0d3ee92efde20a765 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sat, 13 Jan 2024 08:09:19 +0000 Subject: [PATCH 2/3] feat: support release drafter --- .github/release-drafter.yml | 2 +- .github/workflows/release-drafter.yml | 2 +- .pre-commit-config.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index ad06f98..0d0b1c9 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1 +1 @@ -_extends: .github \ No newline at end of file +_extends: .github diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 0d16ba5..a824842 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,4 +13,4 @@ jobs: # 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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.CPP_LINTER_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 599fe90..610338f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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] From 20266fc863b436898d7774593a3592c928d07716 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sat, 13 Jan 2024 08:11:19 +0000 Subject: [PATCH 3/3] chore: remove .gitpod.yml --- .gitpod.yml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 6fba074..0000000 --- a/.gitpod.yml +++ /dev/null @@ -1,10 +0,0 @@ -# This configuration file was automatically generated by Gitpod. -# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) -# and commit this file to your remote git repository to share the goodness with others. - -# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart - -tasks: - - init: pip install . - -