Skip to content

Commit

Permalink
.github/workflows/request-reviews.yml: Latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
makubacki committed Jul 22, 2024
1 parent c90c814 commit cc0c4df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/request-reviews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
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
Expand All @@ -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.")
Expand Down

0 comments on commit cc0c4df

Please sign in to comment.