Add configuration for git commit
and test auto-style again by adding spaces to app_fib
This commit is contained in:
parent
2da80242a9
commit
bcacf7c849
3
.github/workflows/check_misc.yml
vendored
3
.github/workflows/check_misc.yml
vendored
@ -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 || '' }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
def fib(n)
|
||||
def fib(n)
|
||||
if n < 3
|
||||
1
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user