Scripts/lib/audit-pass.sh
13 lines · 480 bytes
1# shellcheck shell=bash
2#
3# Where accessibility audit passes are recorded, and which changes need one.
4# Sourced by Scripts/audit-a11y.sh, which records a pass, and
5# .githooks/pre-push, which checks for it.
6
7# Paths whose changes can alter the rendered UI.
8AUDIT_INPUTS='\.(swift|xcassets|xcodeproj)|\.pbxproj|xcscheme'
9
10# One tree hash per line. Under the common git dir, so worktrees share it.
11audit_pass_file() {
12 echo "$(git rev-parse --git-common-dir)/a11y-audit-passed"
13}