From e931722d5d7cf70c5c512b90f5613ca9b622194a Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Fri, 29 Dec 2023 14:10:37 +0800 Subject: [PATCH 1/5] feat: Create release.yml --- .github/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..d82f279 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,25 @@ +# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuration-options + +changelog: + exclude: + labels: + - ignore-for-release + categories: + - title: '🔥 Breaking Changes' + labels: + - 'breaking' + - title: 🏕 Features + labels: + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'bug' + - title: '👋 Deprecated' + labels: + - 'deprecation' + - title: 📦 Dependencies + labels: + - dependencies + - title: Other Changes + labels: + - "*" From 46eb66e4f391cab2eddaa5b4eb14be3a9cb201ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 13:19:34 -0700 Subject: [PATCH 2/5] ci: pre-commit autoupdate (#131) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c65c49a..079a6cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,7 @@ repos: hooks: - id: codespell - repo: https://github.com/commit-check/commit-check - rev: v0.6.3 + rev: v0.7.0 hooks: - id: check-message - id: check-branch From e38a5658be2c3aa58f8a26ecae6de7d2c569a7e7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:20:57 +0800 Subject: [PATCH 3/5] ci: pre-commit autoupdate (#132) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 079a6cc..4a2244b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: name-tests-test - id: requirements-txt-fixer - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 args: [--max-line-length=100, --ignore=E501] From 2345c4a3579caa0c3c7dc2be9812715dfc882c38 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Mon, 15 Jan 2024 22:28:29 -0700 Subject: [PATCH 4/5] feat: Support release drafter (#133) --- .github/release-drafter.yml | 1 + .github/workflows/release-drafter.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..0d0b1c9 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1 @@ +_extends: .github diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..d703049 --- /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.COMMIT_CHECK_TOKEN }} From fcb86f1cc2a534c057d9f3de0a9d22c28dfc201a Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Mon, 15 Jan 2024 22:48:39 -0700 Subject: [PATCH 5/5] feat: Create labeler.yml (#134) * feat: Create labeler.yml * feat: Create labeler.yml --- .github/labeler.yml | 4 ++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..ccd5268 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,4 @@ +# Add 'dependencies' label to pre-commit config files within the entire repository +dependencies: +- changed-files: + - any-glob-to-any-file: '.pre-commit*.yml' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..e57cd86 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5