#14793·polar

GitHub repository benefit: allow per-repo selection, and clear expired invites on "Request new invite"

Author: stilla[bot]Created Sep 23, 2026Updated Sep 23, 2026

Merchants with many-repo GitHub repository benefits (one product reported ~130 repos) currently have every repo invited at once per purchase. Most customers only use a few, so the rest expire after a week, flooding both the merchant's GitHub org with stale invites (one case: 15,000+ expired invites, slow to clean up due to GitHub rate limits) and the customer's inbox (100+ invite emails per purchase).

Additionally, once invites expire, clicking "Request new invite" in the customer portal doesn't work: it appears to fail to re-invite because the old expired invite isn't removed first.

Requested fixes:

  1. Let customers choose which repos to be invited to from the portal, instead of inviting to all repos on the benefit at once.
  2. At minimum, have "Request new invite" delete the expired invite before creating a new one, so it actually works.

Sent by @wonhaeme from Ticket similarity check th_01M37Z7H0FYYNNYHMFHR4062RF.

Plain: https://app.plain.com/workspace/w_01JE9TRRX9KT61D8P2CH77XDQM/thread/th_01M37Z7H0FYYNNYHMFHR4062RF/