Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically Add Reviewers to Pull Requests #5948

Merged
merged 3 commits into from
Jul 25, 2024

Commits on Jul 24, 2024

  1. BaseTools/GetMaintainer.py: Add GitHub username argument

    Adds a new `-g` parameter so that output will also include the GitHub
    username.
    
    This change uses a simple regular expression as opposed to directly
    returning the original line from the file to make the extraction of
    GitHub usernames more robust to other changes on the line in the
    maintainers text file.
    
    Signed-off-by: Michael Kubacki <[email protected]>
    makubacki committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    db16eec View commit details
    Browse the repository at this point in the history
  2. .github: Add GitHub helper python script

    Adds a script that provides GitHub API helpers for workflows and
    other GitHub automation in the repository.
    
    Signed-off-by: Michael Kubacki <[email protected]>
    makubacki committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    4ffea47 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. .github/workflows/request-reviews.yml: Add workflow

    Adds a new GitHub workflow to automatically add reviewers to pull
    requests when they are opened, reopened, synchronized, and if a draft
    pull request is marked as ready for review. The workflow will not
    run on draft pull requests.
    
    The workflow is meant to be simple to understand and modify, relying
    on existing logic in GetMaintainer.py to determine the relevant
    reviewers and using simple Python GitHub REST API wrappers with the
    default GitHub token for authentication.
    
    Future changes may optimize the workflow.
    
    Signed-off-by: Michael Kubacki <[email protected]>
    makubacki committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    5fe80a5 View commit details
    Browse the repository at this point in the history