You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/07/07 12:17:21 UTC
[PR] pr-management-triage: allow maintainer @-mentions on the operator's own PRs [magpie]
potiuk opened a new pull request, #771:
URL: https://github.com/apache/magpie/pull/771
## What
The `mention` guard enforced author-only notification on every guarded `gh pr/issue comment` (and `gh pr edit --body`). That also blocked a legitimate case: the operator nudging their own reviewers on **their own** PR.
## Change
When the target PR/issue author is the authenticated `gh` user (`gh api user`), the guard now allows the mention. If operator resolution fails it falls through to the existing author-only rule (fail-safe). The `MAGPIE_ALLOW_MENTIONS=1` override for any other deliberate exception is unchanged.
## Tests / docs
- New coverage: own-PR allows maintainers, case-insensitive, and others'-PR still denied when the operator resolves.
- Made the existing fold-edit test hermetic (it previously relied on a real `gh pr view` failing, which broke once the own-PR exemption could fire against a real PR).
- Updated the agent-guard README guard table and Golden rule 12 in the triage SKILL.
Full workspace pre-commit (ruff/mypy/pytest across all members) passes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] pr-management-triage: allow maintainer @-mentions on the operator's own PRs [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #771:
URL: https://github.com/apache/magpie/pull/771
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org