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
feat(commands): let a PR's own author use chat when rate limiting is active (#5087)
@gittensory chat was maintainer/collaborator-only, silently denying the
PR's own author with no reply. Widens chat's default roles to include
pr_author, but gates the grant on commandRateLimitPolicy being "hold"
for the repo -- enforced in evaluateCommandAuthorization, not just by
operator convention, so a deployment that hasn't turned on rate
limiting never grants contributor chat access regardless of what
chat's configured roles say.
Also fixes normalizeCommandRoleList's clamp so a maintainer's yml
restatement of chat's own default (now including pr_author) isn't
silently mangled, while every other maintainer-only command is
unaffected.
Closes#5084
// #5084: a role also survives the clamp if it's explicitly part of THIS command's own shipped default
191
+
// (chat's own default now includes pr_author) -- so a maintainer restating or narrowing a command's own
192
+
// default via yml never gets silently mangled, while every OTHER maintainer-only command whose own default
193
+
// excludes pr_author still can't have it added via override (this is a per-command union, not a blanket
194
+
// relaxation: the clamp still can't be conjured up on generate-tests/pause/etc.).
195
+
/* v8 ignore next -- defensive: MAINTAINER_ONLY_DEFAULT_COMMANDS is derived from these keys, so a maintainer-only command always resolves a default list. */
// #5084: a role also survives the clamp if it's explicitly part of THIS command's own shipped default
191
+
// (chat's own default now includes pr_author) -- so a maintainer restating or narrowing a command's own
192
+
// default via yml never gets silently mangled, while every OTHER maintainer-only command whose own default
193
+
// excludes pr_author still can't have it added via override (this is a per-command union, not a blanket
194
+
// relaxation: the clamp still can't be conjured up on generate-tests/pause/etc.).
195
+
/* v8 ignore next -- defensive: MAINTAINER_ONLY_DEFAULT_COMMANDS is derived from these keys, so a maintainer-only command always resolves a default list. */
0 commit comments