Skip to content

Commit

Permalink
Merge pull request #73 from alphagov/allow-gemspec-changes
Browse files Browse the repository at this point in the history
Allow auto-merging when changes are made to gemspec files
  • Loading branch information
MuriloDalRi authored Jun 5, 2024
2 parents 92cbd0b + 19e4abc commit 1ec77fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pull_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def validate_single_commit
def validate_files_changed
commit = GitHubClient.instance.commit("alphagov/#{@api_response.base.repo.name}", @api_response.head.sha)
files_changed = commit.files.map(&:filename)
allowed_files = ["yarn.lock", "Gemfile.lock"]
allowed_files = ["yarn.lock", "Gemfile.lock", "#{@api_response.base.repo.name}.gemspec"]
(files_changed - allowed_files).empty?
end

Expand Down

0 comments on commit 1ec77fd

Please sign in to comment.