Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add require multiple reviewers action (#204)
Requires a specified number of reviewers for certain important files, the files are to be provided as an `important-files-path` var. See `README.md` for more details https://github.com/dequelabs/axe-api-team-public/pull/204/files#diff-db32ad4c1ae8b5f09def402ee7d7876046a269ae8c7b5bfb42567d703807902b **NOTE:** this version doesn't account for edge cases like accounting for approvals from people who requested changes, e.g. if a PR requires 2 reviewers, 1 reviewer requested changes but other 2 reviewers approved the PR, the action will pass. 1. This would show a `Tests / require-multiple-reviewers` check that would fail until a required number of reviewers approves a PR that uses the action. 2. Also shows annotations on the files that are important. Annotations remain on the files for information purposes and are not removed. **Changes requested:** <img width="842" alt="Tests / require-multiple-reviewers` fails since the PR requires 1 reviewer and changes are requested" src="https://github.com/user-attachments/assets/f9f49afa-6a23-4839-a374-f92eb9d387de" /> **Changes approved:** <img width="842" alt="Tests / require-multiple-reviewers` passes since the PR requires 1 reviewer and it's approved by 1 reviewer" src="https://github.com/user-attachments/assets/ee1bfdd5-9f9d-405c-9f42-89409c7ecd41" /> **Annotations:** <img width="1354" alt="`Annotation on an important file 'The file important.txt is important and requires at least 1 reviewers.'" src="https://github.com/user-attachments/assets/9f9a273a-8830-4ae1-9c3c-1625f7c2d542" /> Ref: dequelabs/axe-linter#1632
- Loading branch information