Rename Editable.Allowed to Selectable

The field gates whether the interactive survey offers the field as a
choice; rename so the name reflects intent and add a godoc.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kynan Ware 2026-05-12 21:18:18 -06:00
parent 72859237e2
commit 6106bd3076
5 changed files with 20 additions and 14 deletions

View file

@ -899,7 +899,7 @@ func Test_editRun(t *testing.T) {
Interactive: true,
FieldsToEditSurvey: func(_ prShared.EditPrompter, eo *prShared.Editable) error {
// Verify the survey is allowed to offer Type as an option for issue edit.
assert.True(t, eo.IssueType.Allowed)
assert.True(t, eo.IssueType.Selectable)
eo.IssueType.Edited = true
return nil
},