Title: Require an open pull request before a second issue assignment · Issue #104 · learningequality/.github · GitHub
Open Graph Title: Require an open pull request before a second issue assignment · Issue #104 · learningequality/.github
X Title: Require an open pull request before a second issue assignment · Issue #104 · learningequality/.github
Description: Overview A contributor with nothing assigned can take two issues at once and leave both untouched. The limit counts slots, not progress. Issues are tagged against the team's capacity to review them, so an assigned issue with no pull requ...
Open Graph Description: Overview A contributor with nothing assigned can take two issues at once and leave both untouched. The limit counts slots, not progress. Issues are tagged against the team's capacity to review them...
X Description: Overview A contributor with nothing assigned can take two issues at once and leave both untouched. The limit counts slots, not progress. Issues are tagged against the team's capacity to review ...
Opengraph URL: https://github.com/learningequality/.github/issues/104
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Require an open pull request before a second issue assignment","articleBody":"## Overview\n\nA contributor with nothing assigned can take two issues at once and leave both untouched. The limit\ncounts slots, not progress. Issues are tagged against the team's capacity to review them, so an\nassigned issue with no pull request holds a slot that was released deliberately.\n\nMake the second slot conditional. A contributor holding one issue gets another only when that issue\nalready has an open pull request.\n\n**Complexity:** Medium\n**Target branch:** main\n\n### Context\n\nThe two issue limit already exists. `scripts/contributor-issue-comment.js:176` declines a `/assign`\nwhen `totalSlots >= MAX_ASSIGNED_ISSUES`, counting open assigned issues across `COMMUNITY_REPOS`\nplus issues dropped inside the seven day cooldown. The decline posts a comment through\n`sendAssignReplyAndNotify` and notifies Slack.\n\nThis change extends that check. It adds no automation, no registry entry, and no second comment.\n\n### The Change\n\nAdd a progress gate to the existing limit check, in this order:\n\n| Assigned issues | Result |\n|---|---|\n| 0 | assign |\n| 1, and that issue has an open pull request | assign |\n| 1, with no open pull request | decline |\n| 2 | decline, as today |\n\nAn issue counts as having an open pull request when one of the contributor's own open pull requests\nlinks it with a closing keyword. A draft counts, because work has started. A closed pull request does\nnot count, because nothing is in flight.\n\nExtend `formatAssignAtLimitMessage` rather than adding a message. It already lists the contributor's\ncurrent assignments. It needs to name the issue that is waiting for a pull request, and say that\nunassigning it starts the seven day cooldown.\n\nThe gate applies to `/assign` only. A maintainer can still assign by hand, so exceptions stay\npossible case by case.\n\n### Notes for the implementer\n\n`getPullRequests` in `scripts/utils.js` already fetches a contributor's open pull requests across the\ncommunity repos. `getLinkedIssues` reads the closing links, but it takes the repo from\n`context.repo`, so it needs the owner and repo passed in before it can check a pull request in\nanother repository.\n\n### Out of Scope\n\n- Changing `MAX_ASSIGNED_ISSUES` or `ASSIGN_COOLDOWN_DAYS`.\n- Assignment by a maintainer.\n- Any new comment, workflow, or automation.\n\n### Acceptance Criteria\n\n- [ ] A contributor with no assigned issue is assigned as today.\n- [ ] A contributor with one assigned issue that has an open pull request is assigned.\n- [ ] A contributor with one assigned issue and no open pull request is declined.\n- [ ] A draft pull request counts as an open one.\n- [ ] A closed pull request does not count.\n- [ ] A pull request that links the issue without a closing keyword does not count.\n- [ ] A contributor with two assigned issues is declined, as today.\n- [ ] The decline names the issue waiting for a pull request, and says that unassigning starts the\n cooldown.\n- [ ] The existing cooldown behaviour is unchanged.\n- [ ] Tests cover each row of the table.\n\n### Testing\n\nTest in `test-actions`. See\n[testing the automations](https://github.com/learningequality/.github/blob/main/docs/testing-automations.md).\nThe cases need an account outside the organization.\n\n1. Comment `/assign` on a `good first issue` with nothing assigned. Expect assignment.\n2. Comment `/assign` on a second issue. Expect a decline naming the first issue.\n3. Open a pull request that closes the first issue, then comment `/assign` again. Expect assignment.\n4. Close that pull request, then try a third issue. Expect a decline.\n\n### References\n\n- #103 adds `getLinkedIssues`, and asks a contributor to link their issue when nothing is linked.\n This gate depends on that link being there.\n\n## AI usage\n\nI used Claude Code to check what the `/assign` flow already enforces and to draft this issue. I\ndecided the rule and the reading of what counts as progress.\n","author":{"url":"https://github.com/akolson","@type":"Person","name":"akolson"},"datePublished":"2026-09-29T11:32:39Z","url":"https://github.com/learningequality/.github/issues/104"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:70b43447-e11b-a64e-0c32-7d163b38d84d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82A6:26206F:236F3F8:2E0EFD8:6AFFEC6A |
| html-safe-nonce | d3caa7ec821d5c0ed1121c93fefb876987402dce165cb4019a3901574a1ae8dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkE2OjI2MjA2RjoyMzZGM0Y4OjJFMEVGRDg6NkFGRkVDNkEiLCJ2aXNpdG9yX2lkIjoiMTA1NTk2NTgwNjU2MDUzNzcwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 807e0cf4e30d70284da97ed34138beb56b15704fc7468368adc0aaa12dd4dc10 |
| hovercard-subject-tag | issue:5629836236 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/learningequality/.github/104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ba3b6a98da53e5798ee0e0b9a5bb58e16c379ed095c1b332955e58f13552c88/learningequality/.github/issues/104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ba3b6a98da53e5798ee0e0b9a5bb58e16c379ed095c1b332955e58f13552c88/learningequality/.github/issues/104 |
| og:image:alt | Overview A contributor with nothing assigned can take two issues at once and leave both untouched. The limit counts slots, not progress. Issues are tagged against the team's capacity to review them... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | akolson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/learningequality/.github git https://github.com/learningequality/.github.git |
| octolytics-dimension-user_id | 3926525 |
| octolytics-dimension-user_login | learningequality |
| octolytics-dimension-repository_id | 647407699 |
| octolytics-dimension-repository_nwo | learningequality/.github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 647407699 |
| octolytics-dimension-repository_network_root_nwo | learningequality/.github |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width