Skip to content

Require language selection in arch board review template - #10184

Merged
Praveen Kuttappan (praveenkuttappan) merged 1 commit into
Azure:mainfrom
samvaity:arch-board-template-required-languages
Jul 27, 2026
Merged

Praveen Kuttappan (praveenkuttappan) merged 1 commit into
Azure:mainfrom
samvaity:arch-board-template-required-languages

Conversation

@samvaity

Copy link
Copy Markdown
Member

What

Makes the Languages for this Review field in the Architecture Board API-review issue template required, so a submission can never be filed with zero languages selected.

  • Converts the field from an optional checkboxes group to a multi-select dropdown (multiple: true) with validations.required: true.
  • GitHub issue forms cannot require "at least one" checkbox (the required flag on checkboxes is per individual option), so a required multi-select dropdown is the only control that enforces a non-empty selection at submit time.

Why

Empty language selections currently slip through and get bounced during triage with a "No languages were selected" comment (an avoidable round trip). Enforcing selection upfront means issues reliably reach ready-for-review, which keeps per-language board views and architect assignment (#10167) accurate.

Parser compatibility

getSelectedLanguages is now tolerant of both renderings:

  • the dropdown's comma-separated value list (e.g. Java, Python), and
  • the legacy - [x] Java checkbox format,

so existing open issues and all triage/assignment parsing keep working. Added a parser test for the dropdown rendering. Full suite green, eslint + prettier clean.

Note

This is a focused follow-up to #10167 (architect assignment) and does not touch that PR's assignment logic. Assignment stays at ready-for-review; this change just makes reaching that state more reliable.

Convert the "Languages for this Review" field from an optional checkbox
group to a required multi-select dropdown so submissions can never omit a
language. GitHub issue forms cannot require "at least one" checkbox, but a
multi-select dropdown with validations.required enforces a non-empty
selection at submit time, closing the empty-languages gap that produced
"No languages were selected" bounces during triage.

Make getSelectedLanguages tolerant of both renderings: the dropdown's
comma-separated value list and the legacy checkbox format, keeping existing
open issues and triage parsing working. Add a parser test for the dropdown
rendering.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f922dad1-6173-4c65-b4bb-03f056572963
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Requires at least one language for Architecture Board reviews while preserving legacy issue parsing.

Changes:

  • Replaces language checkboxes with a required multi-select dropdown.
  • Supports dropdown and legacy checkbox renderings.
  • Adds dropdown parsing coverage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/ISSUE_TEMPLATE/arch-board-review.yml Makes language selection required.
.github/workflows/src/arch-board-review/issue-parsing.js Parses both language-selection formats.
.github/workflows/test/arch-board-review/issue-parsing.test.js Tests multi-select parsing.

@praveenkuttappan
Praveen Kuttappan (praveenkuttappan) merged commit d70c03b into Azure:main Jul 27, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants