diff --git a/.github/workflows/check_label.yml b/.github/workflows/check_label.yml index a0779268a5..68c8778341 100644 --- a/.github/workflows/check_label.yml +++ b/.github/workflows/check_label.yml @@ -6,11 +6,11 @@ on: [pull_request_target] jobs: verify_pr_labels: runs-on: ubuntu-latest - + steps: - name: Checkout uses: actions/checkout@v4 - + - name: Verify Pull Request Labels uses: actions/github-script@v7 with: 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 = ''; 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/