Skip to content

feat: add copilot-setup-steps.yml for Copilot cloud agent - #173

Merged
don-petry merged 6 commits into
mainfrom
feat/add-copilot-setup-steps
May 22, 2026
Merged

don-petry merged 6 commits into
mainfrom
feat/add-copilot-setup-steps

Conversation

@don-petry

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/copilot-setup-steps.yml to bootstrap the Copilot cloud agent environment before each session.

Why this matters

Without this file, Copilot discovers and installs dependencies itself via trial and error — slow, non-deterministic, and impossible for repos with private packages. This file gives the agent a deterministic, pre-verified starting point.

The verify step fails the job if AGENTS.md is missing — catching a misconfigured repo before the agent begins work.

Stack

Documentation / scripts only — no runtime build dependencies. Setup is minimal: checkout + verify.

Standard

Bootstraps the Copilot cloud agent environment before each session.
This is a documentation/scripts repo with no runtime build dependencies,
so setup is minimal: checkout + verify. The verify step confirms AGENTS.md
is present and fails loud if it is missing.

Template source: petry-projects/.github/standards/workflows/copilot-setup-steps.yml
Standard: ci-standards.md §11 Copilot Cloud Agent Setup

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai

coderabbitai Bot commented May 21, 2026 •

Copy link
Copy Markdown

Warning

Rate limit exceeded

@don-petry has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 4 minutes and 6 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f92ea84f-d8d9-462c-aed0-56fb256df1c6

📥 Commits

Reviewing files that changed from the base of the PR and between 8a479ae and e7339d2.

📒 Files selected for processing (1)
  • .github/workflows/copilot-setup-steps.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-copilot-setup-steps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…teps.yml

- Fork guard: replace github.event.repository.fork (reflects base repo, always false
  for org repos) with github.event_name != 'pull_request' || head.repo.fork == false
  so external fork PRs are skipped while direct pushes and manual runs still run
- Verify step: guard find .github/instructions with [ -d ] check to prevent
  pipefail abort when the directory is absent

Addresses review comments on combsmith/.github#328 (Codex P1 and P2).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@don-petry
don-petry marked this pull request as ready for review May 21, 2026 12:17
@don-petry
don-petry requested a review from a team as a code owner May 21, 2026 12:17
Copilot AI review requested due to automatic review settings May 21, 2026 12:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an org-standard GitHub Actions workflow (copilot-setup-steps) intended to bootstrap/verify the Copilot Cloud Agent environment deterministically before agent sessions, including failing early if AGENTS.md is missing.

Changes:

  • Introduces .github/workflows/copilot-setup-steps.yml with the required copilot-setup-steps job name and minimal permissions.
  • Adds a verification step that prints basic environment info and enforces presence of AGENTS.md.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud

Copy link
Copy Markdown

@don-petry
don-petry merged commit 420a20e into main May 22, 2026
17 checks passed
@don-petry
don-petry deleted the feat/add-copilot-setup-steps branch May 22, 2026 12:53
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