diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2025-04-18 09:08:48 +0900 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-04-18 09:08:57 +0900 |
| commit | bcacf7c849bdc835221f2899e358dd640f1f5042 (patch) | |
| tree | e31681ffe5c1a367409e2c19244ff210a4933801 | |
| parent | 2da80242a965b59e0d7b678ebee512aa23404258 (diff) | |
Add configuration for git commit
and test auto-style again by adding spaces to app_fib
| -rw-r--r-- | .github/workflows/check_misc.yml | 3 | ||||
| -rw-r--r-- | benchmark/app_fib.rb | 2 |
2 files changed, 4 insertions, 1 deletions
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 |
