From 735238222351c169380efea132be7064ef1fb0b3 Mon Sep 17 00:00:00 2001 From: Cameron Hyde Date: Fri, 4 Apr 2025 06:30:09 +1000 Subject: [PATCH 1/2] Genome lab minor whitespace edit --- communities/genome/lab/usegalaxy.org.au/templates/intro.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/communities/genome/lab/usegalaxy.org.au/templates/intro.html b/communities/genome/lab/usegalaxy.org.au/templates/intro.html index e2ea1c746..617c99031 100644 --- a/communities/genome/lab/usegalaxy.org.au/templates/intro.html +++ b/communities/genome/lab/usegalaxy.org.au/templates/intro.html @@ -17,20 +17,20 @@ + + From 848184673d7e50817c20d654c01d6f9fce7bb6ef Mon Sep 17 00:00:00 2001 From: Cameron Hyde Date: Fri, 4 Apr 2025 11:04:38 +1000 Subject: [PATCH 2/2] Fix lab post comment script imports --- sources/bin/labs_post_comments.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/bin/labs_post_comments.py b/sources/bin/labs_post_comments.py index 0e138cd0e..4977d162d 100644 --- a/sources/bin/labs_post_comments.py +++ b/sources/bin/labs_post_comments.py @@ -9,6 +9,8 @@ from pathlib import Path from github import Github +from github.IssueComment import IssueComment +from github.PullRequest import PullRequest COMMENT_TITLE_TEMPLATE = "Preview changes to {lab_name} Lab " URL_TEMPLATE = ( @@ -31,9 +33,9 @@ def get_comment( - pull_request: Github.PullRequest.PullRequest, + pull_request: PullRequest, id_string: str, -) -> Github.IssueComment.IssueComment | None: +) -> IssueComment | None: """Fetches PR comments and scans for the COMMENT_TITLE_TEMPLATE.""" for comment in pull_request.get_issue_comments(): if id_string in comment.body: