From 0af1c66ff5f974631136df81112c2deb179cfa83 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:49:47 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.5.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.2...v0.5.4) --- .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 b7c1120f3d..13ad4557a6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: doc/doxygen-awesome.* )$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.2 + rev: v0.5.4 hooks: - id: ruff-format exclude: doc/ From b44b380268daa3b91e100da4de61e9c5a1b925f1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:50:00 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/check_label.yml | 2 +- .github/workflows/macos-linux-conda.yml | 2 +- .github/workflows/scripts/check_label.js | 4 ++-- .github/workflows/scripts/get_label.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check_label.yml b/.github/workflows/check_label.yml index bd5895006a..0d2b0f27fd 100644 --- a/.github/workflows/check_label.yml +++ b/.github/workflows/check_label.yml @@ -6,7 +6,7 @@ on: [pull_request_target] jobs: verify_pr_labels: runs-on: ubuntu-latest - + steps: - name: Verify Pull Request Labels uses: actions/github-script@v7 diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index 4d7d2b0d13..e498ddf37f 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -82,7 +82,7 @@ jobs: const script = require('./.github/workflows/scripts/get_label.js'); await script({github, context, core}) result-encoding: string - + - name: Build Pinocchio shell: bash -el {0} run: | diff --git a/.github/workflows/scripts/check_label.js b/.github/workflows/scripts/check_label.js index 576e01f6ae..12914f6582 100644 --- a/.github/workflows/scripts/check_label.js +++ b/.github/workflows/scripts/check_label.js @@ -7,7 +7,7 @@ module.exports = async ({github, context, core}) => { const prNumber = ref.replace(/refs\/pull\/(\d+)\/merge/, '$1'); return parseInt(prNumber, 10); }; - + const prNumber = context.issue.number || getPullRequestNumber(context.ref); const { data } = await github.rest.pulls.get({ @@ -66,7 +66,7 @@ module.exports = async ({github, context, core}) => { return; } else - { + { const reviewMessage = `👋 Hi, This is a reminder message to please assign a proper label to this Pull Request. The possible labels are: diff --git a/.github/workflows/scripts/get_label.js b/.github/workflows/scripts/get_label.js index b130084d22..dcaee51fa5 100644 --- a/.github/workflows/scripts/get_label.js +++ b/.github/workflows/scripts/get_label.js @@ -6,7 +6,7 @@ module.exports = async ({github, context, core}) => { const prNumber = ref.replace(/refs\/pull\/(\d+)\/merge/, '$1'); return parseInt(prNumber, 10); }; - + const prNumber = context.issue.number || getPullRequestNumber(context.ref); let cmakeFlags = ''; From 0aa514dc34f7ba502471fd9b1911ae2f2d49c76a Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Tue, 23 Jul 2024 11:12:58 +0200 Subject: [PATCH 3/3] ci: add missing checkout --- .github/workflows/check_label.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/check_label.yml b/.github/workflows/check_label.yml index 0d2b0f27fd..7033c1e48e 100644 --- a/.github/workflows/check_label.yml +++ b/.github/workflows/check_label.yml @@ -8,6 +8,7 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: Verify Pull Request Labels uses: actions/github-script@v7 with: