diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 6f620c3..0000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,4 +0,0 @@ -# Add 'dependencies' label to pre-commit config files within the entire repository -dependencies: -- changed-files: - - any-glob-to-any-file: '.pre-commit-\w*.yaml' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 399105d..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "Pull Request Labeler" -on: - pull_request_target: - workflow_dispatch: - -jobs: - labeler: - permissions: - contents: read - 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 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 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. diff --git a/README.rst b/README.rst index 4ec86be..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 -------- @@ -37,7 +39,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 -------------