Skip to content

Chore: [AEA-0000] - fix param names#6

Merged
anthony-nhs merged 3 commits intomainfrom
fix_param_names
Mar 30, 2026
Merged

Chore: [AEA-0000] - fix param names#6
anthony-nhs merged 3 commits intomainfrom
fix_param_names

Conversation

@anthony-nhs
Copy link
Copy Markdown
Collaborator

Summary

  • Routine Change

Details

  • fix param names

Copilot AI review requested due to automatic review settings March 30, 2026 16:32
@github-actions
Copy link
Copy Markdown
Contributor

This PR is linked to a ticket in an NHS Digital JIRA Project. Here's a handy link to the ticket:

AEA-0000

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the composite action and documentation to use a new input name for selecting the ref used when checking out the central eps-copilot-instructions repository.

Changes:

  • Renames action input from common_workflows_ref to copilot_instructions_ref.
  • Updates the checkout step to use the renamed input.
  • Updates README input table and example workflow to the renamed input.

Reviewed changes

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

File Description
action.yml Renames the action input and updates the checkout step to use it.
README.md Updates documentation and usage example to reflect the new input name.

Comment thread action.yml
Comment on lines 29 to 31
with:
ref: ${{ inputs.common_workflows_ref }}
ref: ${{ inputs.copilot_instructions_ref }}
fetch-depth: 0
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

The action still references ${{ inputs.common_workflows_ref }} later in this file (in the create-pull-request body), but that input was renamed to copilot_instructions_ref. Update the remaining reference to the new input name so the PR body shows the correct ref (and to avoid referencing an undefined input).

Copilot uses AI. Check for mistakes.
Comment thread README.md

1. Checks out the calling repository at the requested base branch
2. Checks out the central source repository at the requested ref
2. Checks out copilot instruction files from copilot_instructions_ref repository at the requested ref
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

Step 2 description is inaccurate: copilot_instructions_ref is an input (a git ref), not a repository. Reword this to say the action checks out NHSDigital/eps-copilot-instructions at copilot_instructions_ref (or similar) so readers understand what is being checked out.

Copilot uses AI. Check for mistakes.
Comment thread action.yml Outdated
common_workflows_ref:
description: "The ref to sync from the central repository"
copilot_instructions_ref:
description: "The ref to sync from the eps_copilot_instructions repository"
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

copilot_instructions_ref input description mentions eps_copilot_instructions (underscore), but the repository being checked out is NHSDigital/eps-copilot-instructions (hyphens). Update the description so the input help text matches the actual repo name to avoid confusion for action consumers.

Suggested change
description: "The ref to sync from the eps_copilot_instructions repository"
description: "The ref to sync from the NHSDigital/eps-copilot-instructions repository"

Copilot uses AI. Check for mistakes.
Comment thread action.yml
Comment on lines +4 to 7
copilot_instructions_ref:
description: "The ref to sync from the eps_copilot_instructions repository"
required: false
default: "main"
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

This PR renames the public action input from common_workflows_ref to copilot_instructions_ref, which is a breaking change for any callers using the old input name. Consider supporting common_workflows_ref as a deprecated alias (or documenting a required major version/tag bump) to avoid unexpected failures for existing users.

Copilot uses AI. Check for mistakes.
@anthony-nhs anthony-nhs merged commit a7849a1 into main Mar 30, 2026
3 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.

2 participants