You've already forked library-registry
mirror of
https://github.com/arduino/library-registry.git
synced 2025-07-29 14:01:15 +03:00
Don't request review for PRs from maintainer
Review requests to the PR author are not allowed. Previously, there would be a spurious workflow failure for every PR from a user in the `env.MAINTAINERS` array. When a maintainer is submitting a PR, they can request reviews as needed, so the automated review request can simply be skipped in this case.
This commit is contained in:
3
.github/workflows/manage-prs.yml
vendored
3
.github/workflows/manage-prs.yml
vendored
@ -405,6 +405,7 @@ jobs:
|
||||
Once that is done, it will be merged automatically.
|
||||
|
||||
- name: Request a review in case assistance is required
|
||||
if: contains(toJSON(env.MAINTAINERS), github.actor) != true # Don't attempt to request review from PR author.
|
||||
uses: octokit/request-action@v2.x
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -423,6 +424,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Request pull request review
|
||||
if: contains(toJSON(env.MAINTAINERS), github.actor) != true
|
||||
uses: octokit/request-action@v2.x
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -472,6 +474,7 @@ jobs:
|
||||
- "status: maintenance required"
|
||||
|
||||
- name: Request pull request review
|
||||
if: contains(toJSON(env.MAINTAINERS), github.actor) != true
|
||||
uses: octokit/request-action@v2.x
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Reference in New Issue
Block a user