diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2024-08-01 02:06:24 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-05 22:30:26 +0300 |
commit | 59ad8aeda6352e5da12aaab08ede719ac3a832e5 (patch) | |
tree | 017139fcc50f77b97dbe187da2dd29619e89638c /.github/workflows/request-reviews.yml | |
parent | 32a099c358b3d4b093f76b2d060bcb3154ac5c56 (diff) | |
download | edk2-59ad8aeda6352e5da12aaab08ede719ac3a832e5.tar.xz |
.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/workflows/request-reviews.yml')
-rw-r--r-- | .github/workflows/request-reviews.yml | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/.github/workflows/request-reviews.yml b/.github/workflows/request-reviews.yml index bd00dd4516..15de2cb0e5 100644 --- a/.github/workflows/request-reviews.yml +++ b/.github/workflows/request-reviews.yml @@ -68,24 +68,36 @@ jobs: import git
import os
import sys
- sys.path.append(os.path.join(os.environ['WORKSPACE_PATH'], ".github"))
+
+ sys.path.append(os.path.join(os.environ["WORKSPACE_PATH"], ".github"))
from scripts import GitHub
- WORKSPACE_PATH = os.environ['WORKSPACE_PATH']
- GET_MAINTAINER_LOCAL_PATH = os.path.join(WORKSPACE_PATH, os.environ['GET_MAINTAINER_REL_PATH'])
+ WORKSPACE_PATH = os.environ["WORKSPACE_PATH"]
+ GET_MAINTAINER_LOCAL_PATH = os.path.join(
+ WORKSPACE_PATH, os.environ["GET_MAINTAINER_REL_PATH"]
+ )
# Step 1: Get the GitHub created PR commit SHA (contains all changes in a single commit)
- pr_commit_sha = GitHub.get_pr_sha(os.environ['GH_TOKEN'], os.environ['ORG_NAME'], os.environ['REPO_NAME'], int(os.environ['PR_NUMBER']))
+ pr_commit_sha = GitHub.get_pr_sha(
+ os.environ["GH_TOKEN"],
+ os.environ["ORG_NAME"],
+ os.environ["REPO_NAME"],
+ int(os.environ["PR_NUMBER"]),
+ )
if not pr_commit_sha:
sys.exit(1)
- print(f"::notice title=PR Commit SHA::Looking at files in consolidated PR commit: {pr_commit_sha}")
+ print(
+ f"::notice title=PR Commit SHA::Looking at files in consolidated PR commit: {pr_commit_sha}"
+ )
# Step 2: Fetch only the PR commit to get the files changed in the PR
git.Repo(WORKSPACE_PATH).remotes.origin.fetch(pr_commit_sha, depth=1)
# Step 3: Get the list of reviewers for the PR
- reviewers = GitHub.get_reviewers_for_range(WORKSPACE_PATH, GET_MAINTAINER_LOCAL_PATH, pr_commit_sha, pr_commit_sha)
+ reviewers = GitHub.get_reviewers_for_range(
+ WORKSPACE_PATH, GET_MAINTAINER_LOCAL_PATH, pr_commit_sha, pr_commit_sha
+ )
if not reviewers:
print("::notice title=No New Reviewers Found!::No reviewers found for this PR.")
sys.exit(0)
|