Skip to content

Configure Copilot instructions for GitHub Actions code#40475

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/configure-github-actions-instructions
Draft

Configure Copilot instructions for GitHub Actions code#40475
Copilot wants to merge 3 commits intomainfrom
copilot/configure-github-actions-instructions

Conversation

Copy link
Contributor

Copilot AI commented Feb 16, 2026

The GitHub Actions infrastructure in .github/ (workflows, composite actions, shared utilities) lacked Copilot instructions, unlike the TypeSpec/OpenAPI specification code which has detailed guidance.

Changes

  • Created .github/instructions/github-actions.instructions.md

    • YAML frontmatter with applyTo patterns targeting all GitHub Actions files and directories
    • JavaScript/JSDoc coding standards (ES modules, type annotations, no .ts files)
    • Testing conventions (Vitest), linting (ESLint with TypeScript-aware rules), formatting (Prettier)
    • npm scripts reference, dependency management rules, common development tasks
    • GitHub Actions patterns, security guidelines, architecture documentation
  • Updated .github/copilot-instructions.md

    • Added reference to the new GitHub Actions instructions

Scope

Instructions apply to:

.github/.prettier*
.github/cspell.yaml
.github/eslint.config.js
.github/package*.json
.github/tsconfig.json
.github/vitest.config.js
.github/actions/**/*
.github/matchers/**/*
.github/workflows/**/*
.github/shared/**/*

This separates GitHub Actions development guidance from specification-related instructions, ensuring Copilot provides context-appropriate suggestions when working with CI/CD code versus API specifications.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • gh.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Set up Copilot instructions for GitHub Actions</issue_title>
<issue_description>Configure instructions for the GitHub Actions code in this repo, as documented in Best practices for Copilot coding agent in your repository.

GitHub Actions depend on the following files and folders:

  • .github/.prettier*
  • .github/cspell.yaml
  • .github/eslint.config.js
  • .github/package-lock.json
  • .github/package.json
  • .github/tsconfig.json
  • .github/vitest.config.js
  • .github/actions
  • .github/matchers
  • .github/workflows
  • .github/shared

These folders contain all the code and config for the GitHub Actions that run as PR checks. PRs modifying these folders are very different from typical PRs to this repo, only modifying the specification folder.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Created .github/instructions/github-actions.instructions.md
- Documented GitHub Actions code structure and conventions
- Specified coding standards for JavaScript/Node.js in Actions
- Documented test/lint/format commands
- Included build and CI requirements
- Documented naming conventions and project structure
- Added security and best practice guidelines
- Updated copilot-instructions.md to reference the new instructions

Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Feb 16, 2026

Next Steps to Merge

⌛ Please wait. Next steps to merge this PR are being evaluated by automation. ⌛

Comment generated by summarize-checks workflow run.

Added explicit file matching with **/* to ensure all files in subdirectories are matched

Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up Copilot instructions for GitHub Actions Configure Copilot instructions for GitHub Actions code Feb 16, 2026
Copilot AI requested a review from mikeharder February 16, 2026 19:24
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.

Set up Copilot instructions for GitHub Actions

2 participants