Automation: enforce issue template completeness (needs-info label + guidance comment)
## Summary Enforce issue template completeness: if a required field is missing on a new issue, add the `needs-info` label and post a comment listing what is missing. ## Work Track Cross-track (AI Core / coordination) ## Context / Background The AI Initiative templates have several sections (Summary, Work Track, Context, Acceptance Criteria, etc.). When contributors skip required sections, maintainers spend time pinging them. Automate the check on issue create/edit. Parent / related: #3586474. This issue is blocked by the three exploration issues (#3586475, #3586476, #3586477) — the platform choice and the available `gitlab_api` primitives must land first. ## Tasks * [x] Define which sections are "required" per template (start with the AI Initiative templates). * [x] On `Issue Hook` (open / update), parse the description and detect empty required sections (heading present but body empty / placeholder unchanged). * [x] If any are missing, ensure the `needs-info` label is set and post a single comment listing the missing sections, formatted as a checklist. * [x] When the missing sections are filled in, remove the `needs-info` label automatically. * [x] Avoid spamming: only one outstanding bot comment per issue at a time — edit it, do not re-post. ## Acceptance Criteria * [x] Submitting an incomplete issue applies `needs-info` and a guidance comment within seconds. * [x] Editing the issue to fill the required sections removes the label automatically. * [x] No duplicate bot comments accumulate. ## Related issues ## AI Usage - [x] AI Assisted Issue — This issue was generated with AI assistance, but was reviewed and refined by the creator.
issue