Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite53376f

Browse files
committed
feat: copilot files (instructions and setup steps)
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))Already added to [Evergreen](github/evergreen#382)Signed-off-by: jmeridth <35014+jmeridth@users.noreply.github.com>
1 parentc0a5352 commite53376f

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

‎.github/copilot-instructions.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#Copilot Instructions
2+
3+
This is a GitHub Action that searches for issues/pull requests/discussions in a repository, measures several metrics, and generates a report in form of a GitHub issue. The issues/pull requests/discussions to search for can be filtered by using a search query.
4+
5+
##Code Standards
6+
7+
###Required Before Each Commit
8+
9+
- Run`make lint` before committing any changes to ensure proper code linting and formatting.
10+
11+
###Development Flow
12+
13+
- Lint:`make lint`
14+
- Test:`make test`
15+
16+
##Repository Structure
17+
18+
-`Makefile`: Contains commands for linting, testing, and other tasks
19+
-`requirements.txt`: Python dependencies for the project
20+
-`requirements-test.txt`: Python dependencies for testing
21+
-`README.md`: Project documentation and setup instructions
22+
-`setup.py`: Python package setup configuration
23+
-`test_*.py`: Python test files matching the naming convention for test discovery
24+
25+
##Key Guidelines
26+
27+
1. Follow Python best practices and idiomatic patterns
28+
2. Maintain existing code structure and organization
29+
3. Write unit tests for new functionality.
30+
4. Document changes to environment variables in the`README.md` file.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
# Set the permissions to the lowest permissions possible needed for your steps.
15+
# Copilot will be given its own token for its operations.
16+
permissions:
17+
# 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.
18+
contents:read
19+
20+
jobs:
21+
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
22+
copilot-setup-steps:
23+
runs-on:ubuntu-latest
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@v5.0.0
30+
31+
-name:Set up Python
32+
uses:actions/setup-python@v5.6.0
33+
with:
34+
python-version:3.12
35+
36+
-name:Install dependencies
37+
run:|
38+
pip install -r requirements.txt -r requirements-test.txt

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp