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

ci: Require the review of Percy visual tests #1056

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ Maintenance 🔨:
- any-glob-to-any-file:
- package.json
- .gitignore
"Review: Percy needed":
- changed-files:
- any-glob-to-any-file: src/**
23 changes: 23 additions & 0 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR Percy Review Label Required
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: "Review: Percy +1"
add_comment: true
message: |
This PR is being prevented from merging because it needs to be reviewed on Percy.

Go to [Percy](https://percy.io/bb49709b/react-components), find the build relevant to this PR and check if it looks as expected.

Once it's approved, add the label `Review: Percy +1` to this PR.
Loading