Skip to content

Commit d2c6367

Browse files
committed
Add support for image url
1 parent c05a188 commit d2c6367

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/schema.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class AddReleaseFileCommentInput:
3232
pr_number: int
3333
status: ReleaseFileStatus
3434
release_info: Optional[ReleaseInfo] = None
35+
release_card_url: Optional[str] = None
3536

3637

3738
@strawberry.input
@@ -74,6 +75,9 @@ def add_release_file_comment(self, input: AddReleaseFileCommentInput) -> str:
7475
if input.release_info:
7576
comment = comment.format(changelog_preview=input.release_info.changelog)
7677

78+
if input.image_url:
79+
comment += f"\nHere's the preview release card for twitter: ![]({input.release_card_url})"
80+
7781
add_or_edit_comment(input.pr_number, comment, slug="release-file")
7882
update_labels(input.pr_number, input.release_info)
7983

0 commit comments

Comments
 (0)