From bcacf7c849bdc835221f2899e358dd640f1f5042 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 18 Apr 2025 09:08:48 +0900 Subject: Add configuration for git commit and test auto-style again by adding spaces to app_fib --- .github/workflows/check_misc.yml | 3 +++ benchmark/app_fib.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 60a25e02bb..25cc62df90 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -34,6 +34,9 @@ jobs: set -x ruby tool/auto-style.rb "$GITHUB_OLD_SHA" "$GITHUB_NEW_SHA" "$PUSH_REF" env: + EMAIL: svn-admin@ruby-lang.org + GIT_AUTHOR_NAME: git + GIT_COMMITTER_NAME: git GITHUB_OLD_SHA: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.base.sha || github.event.before }} GITHUB_NEW_SHA: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.merge_commit_sha || github.event.after }} PUSH_REF: ${{ (github.repository == 'ruby/ruby' && github.ref == 'refs/heads/master') && github.ref || '' }} diff --git a/benchmark/app_fib.rb b/benchmark/app_fib.rb index 213912d772..09989e9def 100644 --- a/benchmark/app_fib.rb +++ b/benchmark/app_fib.rb @@ -1,4 +1,4 @@ -def fib(n) +def fib(n) if n < 3 1 else -- cgit v1.2.3