From 58e31f551ef9445e522b84bc6a8ec7d857cd0d68 Mon Sep 17 00:00:00 2001 From: Schneems Date: Tue, 17 Dec 2024 15:27:28 -0600 Subject: [PATCH] Ignore GHA generated Ruby files The PRs generated by the GHA have some 400,000+ lines changed in them https://github.com/heroku/buildpacks/pull/71. That is because it 2,000+ files installed including all the gems installed and Ruby. This is definitively not what we want. This behavior is documented in https://github.com/ruby/setup-ruby/tree/v1/?tab=readme-ov-file#bundle-config that it will place the files in `vendor/bundle`. To exclude the directory, we can add it to our `.gitignore`. --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 9cdbf86..60303fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ .DS_Store .rundoc-workspace/ + +# Ignore GHA generated Ruby files +# https://github.com/ruby/setup-ruby/tree/v1/?tab=readme-ov-file#bundle-config +vendor/bundle