Skip to content

Commit 8fa9561

Browse files
committed
Add support for tweets
1 parent b34e7ed commit 8fa9561

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/schema.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class AddReleaseFileCommentInput:
3333
status: ReleaseFileStatus
3434
release_info: Optional[ReleaseInfo] = None
3535
release_card_url: Optional[str] = None
36+
tweet: Optional[str] = None
3637

3738

3839
@strawberry.input
@@ -81,6 +82,9 @@ def add_release_file_comment(self, input: AddReleaseFileCommentInput) -> str:
8182
f"twitter:\n\n![]({input.release_card_url})"
8283
)
8384

85+
if input.tweet:
86+
comment += f"\nHere's the tweet text: \n```{input.tweet}```"
87+
8488
add_or_edit_comment(input.pr_number, comment, slug="release-file")
8589
update_labels(input.pr_number, input.release_info)
8690

0 commit comments

Comments
 (0)