Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 22, 2024
1 parent 0af1c66 commit b44b380
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-linux-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/check_label.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/get_label.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit b44b380

Please sign in to comment.