From 725ccb1a0efa37d8f56673605907ddef67b57d52 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 25 Jun 2025 14:01:38 +0200 Subject: [PATCH 1/2] Update pre-commit workflow to pass no-commit-to-branch check --- .github/workflows/pre-commit.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7b1b9146a44a..f0a078611eda 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -27,6 +27,9 @@ jobs: - name: Checkout DPNP repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + # use commit hash to make "no-commit-to-branch" check passing + ref: ${{ github.sha }} - name: Set up python uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 From d55e63c8d2af6dec77166c8c8953633b52001670 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 25 Jun 2025 14:03:37 +0200 Subject: [PATCH 2/2] Add to the changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d713b1d5ec19..9ea4819d47e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +* Updated `pre-commit` GitHub workflow to pass `no-commit-to-branch` check [#2501](https://github.com/IntelPython/dpnp/pull/2501) + ### Security ## [0.18.1] - 2025-06-24