Add cookbook with 5 practical recipes for common SDK usage patterns#131
Add cookbook with 5 practical recipes for common SDK usage patterns#131brunoborges merged 14 commits intomainfrom
Conversation
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
|
@copilot here are more things to work on.
|
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
All three tasks have been completed in commit c9cb551:
The implementation leverages Maven's existing filtering mechanism for development (SNAPSHOT versions) and adds explicit sed replacement during the release process for the published versions. 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:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
|
@copilot the link to cookbook in /README.md is unlikely to work. Double check that one |
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
|
@copilot prerequisite section in cookbooks should instruct the user to install JBang. And the usage should be by calling the |
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Added JBang prerequisites and usage instructions to all cookbook recipes in commit b3b3d65. Each recipe now includes:
Examples can now be run with: jbang BasicErrorHandling.java
jbang MultipleSessions.java
jbang PRVisualization.java github/copilot-sdk |
There was a problem hiding this comment.
Pull request overview
Adds a Java “Cookbook” section to the Maven site documentation, providing copy/pasteable recipes that demonstrate common Copilot SDK usage patterns (error handling, multi-session usage, local file workflows, PR visualization, and session persistence).
Changes:
- Added Maven site navigation entries for the new cookbook section.
- Introduced five new cookbook recipe pages plus a cookbook README under
src/site/markdown/cookbook/. - Updated release workflow to rewrite cookbook
${project.version}placeholders to the release version for direct JBang execution.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
src/site/site.xml |
Adds “Cookbook” menu items linking to the new pages in the generated site. |
src/site/markdown/cookbook/README.md |
Cookbook landing page with prerequisites and recipe index. |
src/site/markdown/cookbook/error-handling.md |
Error handling patterns and examples. |
src/site/markdown/cookbook/multiple-sessions.md |
Multi-session usage patterns and parallel session example. |
src/site/markdown/cookbook/managing-local-files.md |
Local file organization recipe and interactive variant. |
src/site/markdown/cookbook/pr-visualization.md |
PR age visualization “CLI tool” recipe. |
src/site/markdown/cookbook/persisting-sessions.md |
Session persistence/resumption examples and session manager sample. |
README.md |
Adds a link to the cookbook directory in the repo. |
.github/workflows/publish-maven.yml |
Updates release docs step to also rewrite cookbook version placeholders and commit cookbook files. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot make sure the cookbooks actually work. No need to have formal tests in the project, buy evaluate the code in the cookbooks by actually running them. |
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Fixed compilation issues in commits 1762525 and 884c6ff: Fixed issues:
Verified:
The cookbook examples should now compile and run correctly when copy-pasted. |
|
@copilot add a line about cookbook to the CHANGELOG.md |
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Add cookbook entry to CHANGELOG.md
Added documentation about the new cookbook to the CHANGELOG.md under the Unreleased section:
The entry follows the existing CHANGELOG format and documents the new cookbook feature for the next release.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.