šŸ› fix: the asks job starts on a member's comment alone

Merged
AT
25d ago
+45-11

Slice: #99

Follow-up to #177, found by Cubic on athya_mono's v0.5.28 pin:

  • Before: the client's process-rules-asks job, which may write to issues and pull requests, started on any comment containing Needs you:, Proposal: or Decision:, whoever wrote it. needs-owner itself acts only on the agent's ask and the owner's answer (src/asks.ts), so no outsider's comment wrote anything; it only ran the job.
  • Now: the job's if also needs the comment's author_association to be OWNER, MEMBER or COLLABORATOR. AthyaBot comments on athya_mono as MEMBER.
  • Upgrade: onboard rewrites a 0.5.28 asks job's condition when it moves the pins. The plan says "needs-owner job only for members".

pnpm check: 1007 tests pass; coverage 99.43% lines, 97.45% branches.

šŸ¤– Generated with Claude Code


Summary by cubic

Fixes the process-rules-asks job so an outsider's comment no longer starts it. The trigger now requires the comment's author to be an OWNER, MEMBER or COLLABORATOR; needs-owner labeling itself is unchanged, since it already acted only on the agent's ask and the owner's answer.

Migration

  • When repinning, onboard adds the author check to a 0.5.28 process-rules-asks job's condition, planning it as "needs-owner job only for owners, members and collaborators".