Skip to content

Commit deee215

Browse files
committed
fix gitStream screenshot request automation config
1 parent b436951 commit deee215

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.cm/gitstream.cm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,8 @@ changes:
7272
# Sum all the line removed in the PR
7373
deletions: {{ branch.diff.files_metadata | map(attr='deletions') | sum }}
7474
# Calculate the ratio of new code
75-
ratio: {{ (changes.additions / (changes.additions + changes.deletions)) * 100 | round(2) }}
75+
ratio: {{ (changes.additions / (changes.additions + changes.deletions)) * 100 | round(2) }}
76+
77+
has:
78+
screenshot_link: {{ pr.description | includes(regex=r/!\[.*\]\(.*(jpg|svg|png|gif|psd).*\)/) }}
79+
image_uploaded: {{ pr.description | includes(regex=r/<img.*src.*(jpg|svg|png|gif|psd).*>/) }}

0 commit comments

Comments
 (0)