You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix: the ticket-reviewer could not run Gradle tests. The reviewer allowlist
in hooks/guard-subagent accepted only gradle test / ./gradlew test, so ./gradlew :feature:play:testDebugUnitTest, ./gradlew testDebugUnitTest lint
or ./gradlew --no-daemon test were blocked and Android / multi-module projects
could not be reviewed. Gradle is now allowed for check tasks only, matched by
exact name (test, check, lint, detekt, ktlintCheck, spotlessCheck, lint(Debug|Release|Vital|VitalRelease), test<Variant>UnitTest), optionally
with a project path, because Gradle expands camelCase abbreviations (lintF
would run lintFix). Options are a fixed harmless set (--no-daemon, --offline, --tests <pattern>, -x <task>, …). Building, publishing or
cleaning tasks, tasks that write sources or baselines, -D / -P, options that
load other scripts or directories (-I, -b, -c, -g, -p) and glob
characters in option values stay denied; a trailing backslash
(line continuation) is denied for the reviewer, and GRADLE_*, JAVA_*, JDK_*, ANDROID_*, KOTLIN_*, _JAVA_OPTIONS, ORG_GRADLE_* and TMPDIR cannot be set in a
subagent command. Covered by tests/guard-subagent.sh.