Skip to content

Commit 1d2f0fe

Browse files
committed
feat: add copilot agent setup and instructions files
This ensures that when we have the copilot agent writing PRs, it sets up its environment correctly and understands our standards for coding. - Copilot Instructions file ([docs](https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/agents/copilot-coding-agent/best-practices-for-using-copilot-to-work-on-tasks#adding-custom-instructions-to-your-repository)) - Copilot Setup Steps ([docs](https://docs.github.com/en/copilot/how-tos/agents/copilot-coding-agent/customizing-the-development-environment-for-copilot-coding-agent#preinstalling-tools-or-dependencies-in-copilots-environment)) Signed-off-by: jmeridth <35014+jmeridth@users.noreply.github.com>
1 parent b6c849e commit 1d2f0fe

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/copilot-instructions.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is a GitHub Action that given an organization, team, or specified repositories, opens an issue/PR if dependabot is not enabled, or there are more package ecosystems that could be added. It also enables [automated security updates](https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/configuring-dependabot-security-updates#managing-dependabot-security-updates-for-your-repositories) for the repository. Please follow these guidelines when contributing:
2+
3+
## Code Standards
4+
5+
### Required Before Each Commit
6+
- Run `make lint` before committing any changes to ensure proper code linting and formatting.
7+
8+
### Development Flow
9+
- Lint: `make lint`
10+
- Test: `make test`
11+
12+
## Repository Structure
13+
- `Makefile`: Contains commands for linting, testing, and other tasks
14+
- `requirements.txt`: Python dependencies for the project
15+
- `requirements-test.txt`: Python dependencies for testing
16+
- `README.md`: Project documentation and setup instructions
17+
- `setup.py`: Python package setup configuration
18+
- `test_*.py`: Python test files matching the naming convention for test discovery
19+
20+
## Key Guidelines
21+
1. Follow Python best practices and idiomatic patterns
22+
2. Maintain existing code structure and organization
23+
3. Write unit tests for new functionality.
24+
4. Document changes to environment variables in the `README.md` file.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Copilot Setup Steps"
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
16+
copilot-setup-steps:
17+
runs-on: ubuntu-latest
18+
19+
# Set the permissions to the lowest permissions possible needed for your steps.
20+
# Copilot will be given its own token for its operations.
21+
permissions:
22+
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
23+
contents: read
24+
25+
# You can define any steps you want, and they will run before the agent starts.
26+
# If you do not check out your code, Copilot will do this for you.
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4.2.2
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v5.6.0
33+
34+
- name: Install dependencies
35+
run: |
36+
pip install -r requirements.txt -r requirements-test.txt

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy