Skip to content

Commit

Permalink
Create submission_review.yml
Browse files Browse the repository at this point in the history
Create a new workflow that automatically applies the `REQUEST REVIEW` label when starting a comment with `/review`.

External collaborators without repository write access can use this magic keyword to alert the MHub team that a submission PR is ready to be reviewed.
  • Loading branch information
LennyN95 authored Jan 18, 2024
1 parent cdf9a0b commit 4169241
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/submission_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: MHub Contribution Magic Keywords

on:
issue_comment:
types: [created, edited]

jobs:
autolabel:
if: ${{ github.event.issue.pull_request }}
name: Add labels to PR
runs-on: [ubuntu-latest]

permissions:
pull-requests: write

steps:
- name: Add Request Review Label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/review') }}
with:
labels: REQUEST REVIEW

0 comments on commit 4169241

Please sign in to comment.