Add configuration for git commit

and test auto-style again by adding spaces to app_fib
This commit is contained in:
Takashi Kokubun 2025-04-18 09:08:48 +09:00
parent 2da80242a9
commit bcacf7c849
2 changed files with 4 additions and 1 deletions

View File

@ -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 || '' }}

View File

@ -1,4 +1,4 @@
def fib(n)
def fib(n)
if n < 3
1
else