We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a312c2f commit 351edb1Copy full SHA for 351edb1
tests/ci/pr_info.py
@@ -258,9 +258,13 @@ def __init__(
258
self.base_name = self.repo_full_name
259
self.head_ref = ref
260
self.head_name = self.repo_full_name
261
- self.diff_urls.append(
262
- self.compare_url(github_event["before"], self.sha)
263
- )
+ before_sha = github_event["before"]
+ # in case of just a tag on exsiting commit, "before_sha" is 0000000000000000000000000000000000000000
+ # Hence it is a special case and basically nothing changed, there is no need to compose a diff url
264
+ if not all(x == '0' for x in before_sha):
265
+ self.diff_urls.append(
266
+ self.compare_url(before_sha, self.sha)
267
+ )
268
else:
269
self.number = pull_request["number"]
270
self.labels = {label["name"] for label in pull_request["labels"]}
0 commit comments