-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Create copilot-setup-steps.yml #115834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create copilot-setup-steps.yml #115834
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: "Copilot Setup Steps" | ||
|
|
||
| # Allow testing of the setup steps from your repository's "Actions" tab. | ||
| on: workflow_dispatch | ||
|
|
||
| jobs: | ||
| # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. | ||
| # See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent | ||
| copilot-setup-steps: | ||
| runs-on: ubuntu-latest | ||
ericstj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| # You can define any steps you want, and they will run before the agent starts. | ||
| # If you do not check out your code, Copilot will do this for you. | ||
| steps: | ||
| - uses: actions/checkout@v4.2.2 | ||
|
|
||
| - name: Restore solution | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking aloud here - would it also help to set some things in the environment so that it would use the dotnet that it pulled down on the path? I'm not sure what sort of resources the agent will be using, but we should try to set it up for local-development as close as possible. How do we see / measure how good these steps are working for the agent? Can we see it try them and then see how successful it is at doing things?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it seems to successfully know to go to the root of the repo and run 'build.sh' or whatever the onboarding instructions say. But, if you add a .github\copilot-instructions.md you can be explicit about how it should do incremental subtree builds and how to run tests too.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I think putting
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree it's a good idea to add some specific instructions. I'll try it out in a separate PR. |
||
| run: ./build.sh --restore --excludecibinarylog --warnaserror false /p:BuildAllConfigurations=true /p:DotNetBuildAllRuntimePacks=true | ||
Uh oh!
There was an error while loading. Please reload this page.