From 7cf502e42b24a2df4eb63095a80bbbcecb57a6d7 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Mon, 11 Mar 2024 16:39:34 +0800 Subject: [PATCH 1/5] docs: add link to Yet Another Commit Checker --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 4ec86be..ace21ae 100644 --- a/README.rst +++ b/README.rst @@ -37,7 +37,7 @@ It is a powerful, free solution for individuals and teams aiming to standardize - triggering the specific types of commit/branch CI build - automatically generate changelogs -If you're using Bitbucket, it's an open source alternative to Yet Another Commit Checker. +If you're using Bitbucket, it's an open source alternative to `Yet Another Commit Checker `_. Configuration ------------- From 605d1edf29b9e36538b24eef3c2bad5c172732b4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 09:55:43 +0800 Subject: [PATCH 2/5] ci: pre-commit autoupdate (#146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) - [github.com/commit-check/commit-check: v0.7.1 → v0.7.3](https://github.com/commit-check/commit-check/compare/v0.7.1...v0.7.3) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ed342a5..ffa800e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: args: [--max-line-length=100, --ignore=E501] exclude: ^commit_check/__init__.py - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy additional_dependencies: [types-all] @@ -32,7 +32,7 @@ repos: hooks: - id: codespell - repo: https://github.com/commit-check/commit-check - rev: v0.7.1 + rev: v0.7.3 hooks: - id: check-message # - id: check-branch # uncomment if you need. From 33c6d74c45c0dcf8328e384bbeec5c07224d528a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 12:00:08 +0800 Subject: [PATCH 3/5] chore(deps): bump slsa-framework/slsa-github-generator (#147) Bumps [slsa-framework/slsa-github-generator](https://github.com/slsa-framework/slsa-github-generator) from 1.9.0 to 1.10.0. - [Release notes](https://github.com/slsa-framework/slsa-github-generator/releases) - [Changelog](https://github.com/slsa-framework/slsa-github-generator/blob/main/CHANGELOG.md) - [Commits](https://github.com/slsa-framework/slsa-github-generator/compare/v1.9.0...v1.10.0) --- updated-dependencies: - dependency-name: slsa-framework/slsa-github-generator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/publish-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 592020b..2fec59e 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -59,7 +59,7 @@ jobs: id-token: write # To sign the provenance. contents: write # To add assets to a release. # Can't pin with hash due to how this workflow works. - uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9.0 + uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.10.0 with: base64-subjects: ${{ needs.publish.outputs.hashes }} upload-assets: true # Optional: Upload to a new release From 9d26895cf1260a094f3f4b4819a4ff5c0e0d04a1 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Wed, 3 Apr 2024 15:43:16 +0800 Subject: [PATCH 4/5] fix: update labeler.yml (#148) * Update labeler.yml * fix: update labeler.yml --- .github/labeler.yml | 6 ++++-- .github/workflows/labeler.yml | 7 +------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 6f620c3..32c3403 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,4 +1,6 @@ -# Add 'dependencies' label to pre-commit config files within the entire repository +# Add 'dependencies' label for any changes by pre-commit ci. dependencies: - changed-files: - - any-glob-to-any-file: '.pre-commit-\w*.yaml' + - any-glob-to-any-file: .pre-commit-config.yaml + - base-branch: ['main'] + - head-branch: ['pre-commit-ci-update-config'] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 399105d..e57cd86 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,7 +1,6 @@ name: "Pull Request Labeler" on: - pull_request_target: - workflow_dispatch: +- pull_request_target jobs: labeler: @@ -10,8 +9,4 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - uses: actions/labeler@v5 - with: - sync-labels: true - configuration-path: .github/labeler.yml From 1c852bb9a2c0b535729a5a27ae57d8feeeb0f1b5 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Sun, 7 Apr 2024 14:40:13 +0800 Subject: [PATCH 5/5] docs: uses RST substitution to put badges in 1 line (#149) * uses RST substitution to put badges in 1 line * fix: update labeler.yml * chore: delete .github/workflows/labeler.yml * chore: delete .github/labeler.yml --- .github/labeler.yml | 6 ------ .github/workflows/labeler.yml | 12 ------------ README.rst | 14 ++++++++------ 3 files changed, 8 insertions(+), 24 deletions(-) delete mode 100644 .github/labeler.yml delete mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 32c3403..0000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,6 +0,0 @@ -# Add 'dependencies' label for any changes by pre-commit ci. -dependencies: -- changed-files: - - any-glob-to-any-file: .pre-commit-config.yaml - - base-branch: ['main'] - - head-branch: ['pre-commit-ci-update-config'] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index e57cd86..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,12 +0,0 @@ -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 diff --git a/README.rst b/README.rst index ace21ae..9e4a95e 100644 --- a/README.rst +++ b/README.rst @@ -1,30 +1,32 @@ Commit Check ============ -.. image:: https://img.shields.io/pypi/v/commit-check?logo=python&logoColor=white +.. |pypi-version| image:: https://img.shields.io/pypi/v/commit-check?logo=python&logoColor=white :target: https://pypi.org/project/commit-check/ :alt: PyPI -.. image:: https://github.com/commit-check/commit-check/actions/workflows/main.yml/badge.svg +.. |ci-badge| image:: https://github.com/commit-check/commit-check/actions/workflows/main.yml/badge.svg :target: https://github.com/commit-check/commit-check/actions/workflows/main.yml :alt: CI -.. image:: https://sonarcloud.io/api/project_badges/measure?project=commit-check_commit-check&metric=alert_status +.. |sonar-badge| image:: https://sonarcloud.io/api/project_badges/measure?project=commit-check_commit-check&metric=alert_status :target: https://sonarcloud.io/summary/new_code?id=commit-check_commit-check :alt: Quality Gate Status -.. image:: https://codecov.io/gh/commit-check/commit-check/branch/main/graph/badge.svg?token=GC2U5V5ZRT +.. |codecov-badge| image:: https://codecov.io/gh/commit-check/commit-check/branch/main/graph/badge.svg?token=GC2U5V5ZRT :target: https://codecov.io/gh/commit-check/commit-check :alt: CodeCov -.. image:: https://img.shields.io/badge/commit--check-enabled-brightgreen?logo=Git&logoColor=white +.. |commit-check-badge| image:: https://img.shields.io/badge/commit--check-enabled-brightgreen?logo=Git&logoColor=white :target: https://github.com/commit-check/commit-check :alt: commit-check -.. image:: https://slsa.dev/images/gh-badge-level3.svg +.. |slsa-badge| image:: https://slsa.dev/images/gh-badge-level3.svg :target: https://slsa.dev :alt: SLSA +|pypi-version| |ci-badge| |sonar-badge| |codecov-badge| |commit-check-badge| |slsa-badge| + Overview --------