Merge pull request #38836 from ClickHouse/get-files-changed-in-master

Get files changed in master since release is branched
This commit is contained in:
Mikhail f. Shiryaev 2022-07-05 12:18:15 +02:00 committed by GitHub
commit 44406060af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,6 +200,13 @@ class PRInfo:
]
else:
self.diff_urls.append(pull_request["diff_url"])
if "release" in self.labels:
# For release PRs we must get not only files changed in the PR
# itself, but as well files changed since we branched out
self.diff_urls.append(
f"https://github.com/{GITHUB_REPOSITORY}/"
f"compare/{self.head_ref}...master.diff"
)
else:
print("event.json does not match pull_request or push:")
print(json.dumps(github_event, sort_keys=True, indent=4))