hi folks, this is not really a Graphite-specific q...
# how-do-i
e
hi folks, this is not really a Graphite-specific question. I've been using
withgraphite/dismiss-stale-approvals
action for dismissing stale approvals and it's working well, but I'm wondering if y'all know if there's a tool that exists for dismissing approvals that are assigned to specific users. e.g. I use an agent to create a PR, and that agent would assign it to me. I want to prevent the misuse of my team using agents creating PRs and self-approving their created PRs to merge them. funny use case I know 😂
c
Hey There! Yeah,
dismiss-stale-approvals
only dismisses when the diff changes, not by reviewer or assignee, and I'm not aware of a Graphite action for that today. Please see https://graphite.com/docs/github-configuration-guidelines and https://github.com/withgraphite/dismiss-stale-approvals for more details. One approach is to fork that action or add a
pull_request_review
workflow that dismisses when the approver matches a blocklist (author, assignee, or last pusher). GitHub branch protection's "approval from someone other than the last pusher" may also help. Thanks!
❤️ 1