summaryrefslogtreecommitdiffstats
path: root/.github/scripts
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2024-07-31 19:06:24 -0400
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-08-05 19:30:26 +0000
commit59ad8aeda6352e5da12aaab08ede719ac3a832e5 (patch)
tree017139fcc50f77b97dbe187da2dd29619e89638c /.github/scripts
parent32a099c358b3d4b093f76b2d060bcb3154ac5c56 (diff)
downloadedk2-59ad8aeda6352e5da12aaab08ede719ac3a832e5.tar.gz
.github/request-reviews.yml: Formatting (non-functional)
Updates code for PEP8 formatting by using the Black code formatter. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Diffstat (limited to '.github/scripts')
-rw-r--r--.github/scripts/GitHub.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/scripts/GitHub.py b/.github/scripts/GitHub.py
index ed39474064..628cd8412a 100644
--- a/.github/scripts/GitHub.py
+++ b/.github/scripts/GitHub.py
@@ -126,7 +126,9 @@ def get_reviewers_for_range(
)
if cmd_ret != 0:
print(
- f"::error title=Reviewer Lookup Error!::Error calling GetMaintainer.py: [{cmd_ret}]: {reviewer_stream_buffer.getvalue()}"
+ f"::error title=Reviewer Lookup Error!::Error calling "
+ f"GetMaintainer.py: [{cmd_ret}]: "
+ f"{reviewer_stream_buffer.getvalue()}"
)
return []
@@ -138,7 +140,8 @@ def get_reviewers_for_range(
return []
print(
- f"::debug title=Commit {commit_sha[:7]} Reviewer(s)::{', '.join(matches)}"
+ f"::debug title=Commit {commit_sha[:7]} "
+ f"Reviewer(s)::{', '.join(matches)}"
)
raw_reviewers.extend(matches)
@@ -232,8 +235,9 @@ def add_reviewers_to_pr(
# Notify the admins of the repository if non-collaborators are requested.
if non_collaborators:
print(
- f"::warning title=Non-Collaborator Reviewers Found!::{', '.join(non_collaborators)}"
- )
+ f"::warning title=Non-Collaborator Reviewers Found!::"
+ f"{', '.join(non_collaborators)}"
+ )
for comment in pr.get_issue_comments():
# If a comment has already been made for these non-collaborators,