Skip to content

fix: ask identity setup values one per question in Copilot prompts - #300

Merged
Alexander Zaslonov (azaslonov) merged 1 commit into
Azure:mainfrom
azaslonov:fix/identity-prompt-one-value-per-question
Sep 25, 2026
Merged

Alexander Zaslonov (azaslonov) merged 1 commit into
Azure:mainfrom
azaslonov:fix/identity-prompt-one-value-per-question

Conversation

@azaslonov

Copy link
Copy Markdown
Member

Summary

When running the identity setup prompt files in GitHub Copilot Chat, Copilot bundled several variables into one question with a NAME= template to fill in (for example APIM_RG_PRODUCTION= / APIM_NAME_PRODUCTION=, or GITHUB_ORG= / GITHUB_REPO=). Users could not tell whether to copy the template and fill in each line.

This PR tells Copilot to ask for each value in its own question.

Changes

  • src/templates/copilot/identity-setup-prompt-github-actions.md (Step 1): added "Ask for one value per question" rules: one variable per question, no NAME= templates, describe each value with an example, accept the plain value, and offer detected values as the suggested answer.
  • src/templates/copilot/identity-setup-prompt-azure-devops.md (Step 1): same rules, plus ask per environment whether Option A or Option B will be used before asking for its values one at a time.
  • tests/unit/templates/copilot/identity-setup-prompt.test.ts: tests covering both providers.

Validation

  • npm test: 60 files, 1513 tests passed
  • npm run lint: clean

Code review

Requesting the mandatory code review for src/ and tests/ changes.

Related Issue(s)

None (addresses usability feedback).

The GitHub Actions and Azure DevOps identity setup prompt files now tell
Copilot to ask for each variable in its own question instead of bundling
several values into one NAME= template, which was unclear to users.
Copilot AI balanced review requested due to automatic review settings September 25, 2026 16:11

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.

Copilot review overview

🟢 Approval recommended

The prompt changes match the stated usability goal and are covered by focused tests.

Review effort: Balanced
Findings: None

What changed in this PR

Updates identity setup prompts to collect configuration values individually, improving usability in GitHub Copilot Chat.

Changes:

  • Adds one-value-per-question guidance for GitHub Actions and Azure DevOps.
  • Adds tests confirming both generated prompts include the guidance.
File Description
src/​templates/​copilot/​identity-setup-prompt-github-actions.md Adds individual-value collection instructions.
src/​templates/​copilot/​identity-setup-prompt-azure-devops.md Adds individual-value and option-selection instructions.
tests/​unit/​templates/​copilot/​identity-setup-prompt.test.ts Tests guidance inclusion for both providers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@azaslonov
Alexander Zaslonov (azaslonov) merged commit ca5b16e into Azure:main Sep 25, 2026
6 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.

3 participants