From cc0c4df6dab3c3a4903aac51a2a63936a2c9abfe Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Mon, 22 Jul 2024 17:42:43 -0400 Subject: [PATCH] .github/workflows/request-reviews.yml: Latest changes --- .github/workflows/request-reviews.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/request-reviews.yml b/.github/workflows/request-reviews.yml index ed5ce775b1451..26576fea95bc7 100644 --- a/.github/workflows/request-reviews.yml +++ b/.github/workflows/request-reviews.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v4 @@ -23,7 +25,7 @@ jobs: python-version: '3.x' - name: Install requests library - run: pip install requests + run: pip install edk2-pytool-library edk2-pytool-extensions requests - name: Add Reviewers to Pull Request shell: python @@ -39,6 +41,9 @@ jobs: sys.path.append(os.environ['WORKSPACE_PATH']) from BaseTools.Scripts import GitHub + WORKSPACE_PATH = os.environ['WORKSPACE_PATH'] + GET_MAINTAINER_LOCAL_PATH = os.path.join(os.environ['WORKSPACE_PATH'], os.environ['GET_MAINTAINER_REL_PATH']) + reviewers = GitHub.get_reviewers_for_current_branch(WORKSPACE_PATH, GET_MAINTAINER_LOCAL_PATH) if not reviewers: print("::notice title=No Reviewers Found!::No reviewers found for this PR.")