Skip to content

Commit 68b8e0b

Browse files
authored
Merge pull request #8 from github/edburns/dd-2785864-pre-public-non-code-changes
Rebrand copilot-sdk-java from community SDK to official GitHub SDK
2 parents 40f04fb + cb16f95 commit 68b8e0b

33 files changed

+416
-168
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* edburns@github.com
1+
* @github/copilot-sdk-java

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copilot Instructions for copilot-sdk-java
22

3-
A Java SDK for programmatic control of GitHub Copilot CLI. This is a community-driven port of the official .NET SDK, targeting Java 17+.
3+
A Java SDK for programmatic control of GitHub Copilot CLI. This is a port of the official .NET SDK, targeting Java 17+.
44

55
## About These Instructions
66

@@ -124,7 +124,7 @@ session.createSession(new SessionConfig()
124124
Sessions emit typed events via `session.on()`:
125125

126126
```java
127-
session.on(AssistantMessageEvent.class, msg -> System.out.println(msg.getData().getContent()));
127+
session.on(AssistantMessageEvent.class, msg -> System.out.println(msg.getData().content()));
128128
session.on(SessionIdleEvent.class, idle -> done.complete(null));
129129
```
130130

.github/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
changelog:
55
header: |
6-
📋 **Full Changelog**: See [CHANGELOG.md](https://github.com/copilot-community-sdk/copilot-sdk-java/blob/main/CHANGELOG.md) for detailed release notes.
6+
📋 **Full Changelog**: See [CHANGELOG.md](https://github.com/github/copilot-sdk-java/blob/main/CHANGELOG.md) for detailed release notes.
77
exclude:
88
labels:
99
- ignore-for-release

.github/templates/index.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
<div class="hero-bg"></div>
1717
<div class="hero-content">
1818
<h1>Copilot SDK for <span class="gradient-text">Java</span></h1>
19-
<p class="hero-subtitle">An unofficial, community-driven SDK for building AI-powered tools with GitHub Copilot's agentic runtime.</p>
19+
<p class="hero-subtitle">The official SDK for building AI-powered tools with GitHub Copilot's agentic runtime.</p>
2020
<div class="header-buttons">
21-
<a href="https://github.com/copilot-community-sdk/copilot-sdk-java" class="btn btn-github">
21+
<a href="https://github.com/github/copilot-sdk-java" class="btn btn-github">
2222
<svg height="20" width="20" viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
2323
View on GitHub
2424
</a>
25-
<a href="https://central.sonatype.com/artifact/io.github.copilot-community-sdk/copilot-sdk" class="btn btn-maven">
25+
<a href="https://central.sonatype.com/artifact/com.github/copilot-sdk" class="btn btn-maven">
2626
<svg height="20" width="20" viewBox="0 0 24 24"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path></svg>
2727
View on Maven Central
2828
</a>
@@ -32,8 +32,12 @@ <h1>Copilot SDK for <span class="gradient-text">Java</span></h1>
3232

3333
<main class="container">
3434

35-
<div class="alert alert-warning">
36-
⚠️ <strong>Disclaimer:</strong> This is an <strong>unofficial, community-driven SDK</strong> and is <strong>not supported or endorsed by GitHub</strong>. Use at your own risk.
35+
<div class="alert alert-warning">
36+
⚠️ <strong>Disclaimer:</strong> This is the official Java SDK for GitHub Copilot. This repository treats the official .NET and nodejs SDKs for GitHub Copilot as reference implementations. These SDKS are all officially supported as GitHub open source projects. The Java implementation follows the backward compatibility guarantees offered by the reference implementations. As such this implementation may introduce breaking changes, according to the policy declared by the reference implementations. Use at your own risk.
37+
</div>
38+
39+
<div class="alert alert-warning">
40+
⚠️ <strong>Artifact versioning plan:</strong>Releases of this implementation track releases of the reference implementation. For each release of the reference implementation, there may follow a corresponding relase of this implementation with the same number as the reference implementation. Release identifiers of the reference implementation are in the form `vMaj.Min.Micro`. For example v0.1.32. The corresponding maven version for the release will be `Maj.Min.Micro-java.N`, where `Maj`, `Min` and `Micro` are the corresponding numbers for the reference impementation release, and `N` is a monotonically increasing sequence number starting with 0 for each release. See the corrseponding architectural decision record for more information in the `docs/adr` directory of the source code.
3741
</div>
3842

3943
<div class="alert alert-info">
@@ -71,13 +75,13 @@ <h2 class="section-title">Available Versions</h2>
7175

7276
<footer class="footer">
7377
<div class="footer-links">
74-
<a href="https://github.com/copilot-community-sdk/copilot-sdk-java">GitHub Repository</a>
78+
<a href="https://github.com/github/copilot-sdk-java">GitHub Repository</a>
7579
<span class="sep">·</span>
76-
<a href="https://central.sonatype.com/artifact/io.github.copilot-community-sdk/copilot-sdk">Maven Central</a>
80+
<a href="https://central.sonatype.com/artifact/com.github/copilot-sdk">Maven Central</a>
7781
<span class="sep">·</span>
78-
<a href="https://github.com/copilot-community-sdk/copilot-sdk-java/blob/main/LICENSE">MIT License</a>
82+
<a href="https://github.com/github/copilot-sdk-java/blob/main/LICENSE">MIT License</a>
7983
</div>
80-
<p class="built-with">Built with ❤️ by <a href="https://github.com/brunoborges">Bruno Borges</a> and GitHub Copilot</p>
84+
<p class="built-with">Built with ❤️ by Microsoft and GitHub Copilot</p>
8185
</footer>
8286

8387
</main>

.github/workflows/build-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
run:
3333
shell: bash
3434
steps:
35-
- uses: actions/checkout@v6
36-
- uses: actions/setup-node@v6
35+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
36+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
3737
with:
3838
node-version: 22
39-
- uses: actions/setup-java@v5
39+
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
4040
with:
4141
java-version: "17"
4242
distribution: "temurin"
@@ -78,7 +78,7 @@ jobs:
7878

7979
- name: Upload test results for site generation
8080
if: success() && github.ref == 'refs/heads/main'
81-
uses: actions/upload-artifact@v6
81+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
8282
with:
8383
name: test-results-for-site
8484
path: |

.github/workflows/copilot-setup-steps.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ jobs:
2020
steps:
2121
# Clone the repository
2222
- name: Checkout repository
23-
uses: actions/checkout@v6
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424

2525
# Install GitHub CLI and gh-aw extension for Copilot Agent interaction
2626
- name: Install gh-aw extension
27-
uses: github/gh-aw/actions/setup-cli@v0.42.17
27+
uses: github/gh-aw/actions/setup-cli@7a970851c1090295e55a16e549c61ba1ce227f16 # v0.42.17
2828
with:
2929
version: v0.42.17
3030

3131
# Setup Node.js
32-
- uses: actions/setup-node@v6
32+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
3333
with:
3434
node-version: 22
3535

3636
# Set up JDK 17
3737
- name: Set up JDK 17
38-
uses: actions/setup-java@v5
38+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
3939
with:
4040
java-version: '17'
4141
distribution: 'temurin'

.github/workflows/deploy-site.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ jobs:
5656
url: ${{ steps.deployment.outputs.page_url }}
5757
steps:
5858
- name: Checkout
59-
uses: actions/checkout@v6
59+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6060
with:
6161
fetch-depth: 0
6262

6363
- name: Set up JDK 17
64-
uses: actions/setup-java@v5
64+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
6565
with:
6666
java-version: '17'
6767
distribution: 'temurin'
6868
cache: 'maven'
6969

7070
- name: Checkout gh-pages branch
71-
uses: actions/checkout@v6
71+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7272
with:
7373
ref: gh-pages
7474
path: site
@@ -120,7 +120,7 @@ jobs:
120120
121121
- name: Download test results from Build & Test
122122
if: steps.tags.outputs.is_release == 'false' && inputs.rebuild_all_versions != true && github.event_name == 'workflow_run'
123-
uses: actions/download-artifact@v4
123+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
124124
with:
125125
name: test-results-for-site
126126
path: /tmp/test-results
@@ -222,7 +222,7 @@ jobs:
222222
run: |
223223
cd site
224224
225-
REPO_URL="https://github.com/copilot-community-sdk/copilot-sdk-java"
225+
REPO_URL="https://github.com/github/copilot-sdk-java"
226226
227227
# Get versions from git tags (already sorted by version, descending)
228228
VERSIONS=$(git -C .. tag -l | grep -E '^v?[0-9]+\.[0-9]+' | sed 's/^v//' | sort -Vr)
@@ -293,13 +293,13 @@ jobs:
293293
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
294294

295295
- name: Setup Pages
296-
uses: actions/configure-pages@v5
296+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
297297

298298
- name: Upload artifact
299-
uses: actions/upload-pages-artifact@v4
299+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4
300300
with:
301301
path: 'site'
302302

303303
- name: Deploy to GitHub Pages
304304
id: deployment
305-
uses: actions/deploy-pages@v4
305+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/notes.template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Installation
22

3-
> ⚠️ **Disclaimer:** This is an **unofficial, community-driven SDK** and is **not supported or endorsed by GitHub**. Use at your own risk.
3+
⚠️ **Disclaimer:** This is the official Java SDK for GitHub Copilot. This repository treats the official .NET and nodejs SDKs for GitHub Copilot as reference implementations. These SDKS are all officially supported as GitHub open source projects. The Java implementation follows the backward compatibility guarantees offered by the reference implementations. As such this implementation may introduce breaking changes, according to the policy declared by the reference implementations. Use at your own risk.
4+
5+
⚠️ **Artifact versioning plan:** Releases of this implementation track releases of the reference implementation. For each release of the reference implementation, there may follow a corresponding relase of this implementation with the same number as the reference implementation. Release identifiers of the reference implementation are in the form `vMaj.Min.Micro`. For example v0.1.32. The corresponding maven version for the release will be `Maj.Min.Micro-java.N`, where `Maj`, `Min` and `Micro` are the corresponding numbers for the reference impementation release, and `N` is a monotonically increasing sequence number starting with 0 for each release. See the corrseponding architectural decision record for more information in the `docs/adr` directory of the source code.
46

57
📦 [View on Maven Central](https://central.sonatype.com/artifact/${GROUP_ID}/${ARTIFACT_ID}/${VERSION})
68

7-
📖 [Documentation](https://copilot-community-sdk.github.io/copilot-sdk-java/${VERSION}/) · [Javadoc](https://copilot-community-sdk.github.io/copilot-sdk-java/${VERSION}/apidocs/index.html)
9+
📖 [Documentation](https://github.github.io/copilot-sdk-java/${VERSION}/) · [Javadoc](https://github.github.io/copilot-sdk-java/${VERSION}/apidocs/index.html)
810

911
## Maven
1012
```xml
@@ -23,4 +25,4 @@ implementation("${GROUP_ID}:${ARTIFACT_ID}:${VERSION}")
2325
## Gradle (Groovy DSL)
2426
```groovy
2527
implementation '${GROUP_ID}:${ARTIFACT_ID}:${VERSION}'
26-
```
28+
```

.github/workflows/publish-maven.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
outputs:
3939
version: ${{ steps.versions.outputs.release_version }}
4040
steps:
41-
- uses: actions/checkout@v6
41+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4242
with:
4343
fetch-depth: 0
4444
token: ${{ secrets.GITHUB_TOKEN }}
@@ -51,10 +51,10 @@ jobs:
5151
- uses: ./.github/actions/setup-copilot
5252

5353
- name: Set up JDK 17
54-
uses: actions/setup-java@v5
54+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
5555
with:
5656
java-version: "17"
57-
distribution: "temurin"
57+
distribution: "microsoft"
5858
cache: "maven"
5959
server-id: central
6060
server-username: MAVEN_USERNAME
@@ -111,10 +111,10 @@ jobs:
111111
112112
# Update version in README.md
113113
sed -i "s|<version>[0-9]*\.[0-9]*\.[0-9]*</version>|<version>${VERSION}</version>|g" README.md
114-
sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" README.md
114+
sed -i "s|copilot-sdk-java:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk-java:${VERSION}|g" README.md
115115
116116
# Update version in jbang-example.java
117-
sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" jbang-example.java
117+
sed -i "s|copilot-sdk-java:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk-java:${VERSION}|g" jbang-example.java
118118
119119
# Update version in cookbook files (Maven will filter ${project.version} during site generation,
120120
# but we also need the actual version for direct JBang usage)
@@ -169,13 +169,13 @@ jobs:
169169
if: github.ref == 'refs/heads/main'
170170
runs-on: ubuntu-latest
171171
steps:
172-
- uses: actions/checkout@v6
172+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
173173
with:
174174
fetch-depth: 0
175175
- name: Create GitHub Release
176176
run: |
177177
VERSION="${{ needs.publish-maven.outputs.version }}"
178-
GROUP_ID="io.github.copilot-community-sdk"
178+
GROUP_ID="com.github"
179179
ARTIFACT_ID="copilot-sdk"
180180
CURRENT_TAG="v${VERSION}"
181181

.github/workflows/weekly-upstream-sync.lock.yml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)