saleor-dashboard/.github/workflows/review-assignment.yml
Jakub Majorek 078628f99f
Create GH workflow for UI review assignment (#1046)
* test

* Simplify workflow

* Unassign when checkbox is unchecked
2021-04-02 15:23:43 +02:00

18 lines
525 B
YAML

name: Review assignment
on:
pull_request:
types: [opened, edited]
jobs:
assign_ui:
runs-on: ubuntu-latest
name: Assign UI Reviewer
if: contains(github.event.pull_request.body , 'This code contains UI changes')
steps:
- name: Add/Remove UI reviewer
uses: jwm0/add-reviewer-gh-action@1.0.4
with:
reviewers: "pwgryglak"
token: ${{ secrets.GITHUB_TOKEN }}
remove: ${{ !contains(github.event.pull_request.body , '[x] This code contains UI changes') }}