Test some changes (#8)

This commit is contained in:
Reuven V. Gonzales 2020-01-02 10:11:53 -08:00 committed by GitHub
parent 9b9cce00b6
commit e244b0b6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -18,9 +18,14 @@ def validate_entity_pull_request(gh, repo, pr_number):
expected_filename = "entities/%s-entity.tar.gz" % pr_creator
for changed_file in pr.get_files():
if changed_file.filename == expected_filename:
is_valid = True
changed_files = list(pr.get_files())
if len(changed_files) > 1:
raise InvalidEntityPR(
'This PR contains more than an entity change. That is not allowed without explicit review.'
)
if changed_files[0].filename == expected_filename:
is_valid = True
if not is_valid:
raise InvalidEntityPR(

View File

@ -3,7 +3,7 @@ name: Check validation scripts
on: [push]
jobs:
build:
test_validation_scripts:
name: Test that the validation scripts work as expected
runs-on: ubuntu-latest
steps: