Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "full-github",
"version": "0.2.0",
"version": "0.2.1",
"description": "Source-backed GitHub capability discovery and execution for Codex, including repository, organization and enterprise workflows.",
"author": {
"name": "ThinkHome",
Expand Down
6 changes: 4 additions & 2 deletions docs/VERIFICATION.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Verification record

## Version 0.2.0
## Version 0.2.1

Verification date is 2026-11-15 on GitHub.com, repository thinkhome-org/full-github and organization Project 5.

Expand All @@ -13,9 +13,11 @@ Verification date is 2026-11-15 on GitHub.com, repository thinkhome-org/full-git
- Eighteen confirmed retired REST operations carry closure/replacement metadata and are blocked by the executor.
- Current Projects view CRUD and status-update CRUD were confirmed in the live schema. Earlier blanket UI-only guidance has been corrected.

Version 0.2.1 additionally preserves an explicit upload Content-Type header when a caller selects an asset MIME type.

## Automated checks

- 24 unit tests cover parameter boundaries, path/query encoding, body handling, binary upload host/media type, dry-run, remote exit status, retirement blocking, schema coverage, documented array filters, real-gh binary download byte preservation, pagination, empty responses, failures, classic branch protection and inaccessible Projects.
- 25 unit tests cover parameter boundaries, path/query encoding, body handling, binary upload host/media type, dry-run, remote exit status, retirement blocking, schema coverage, documented array filters, real-gh binary download byte preservation, pagination, empty responses, failures, classic branch protection and inaccessible Projects.
- Manifest, capability schema, unique IDs, retired metadata and GraphQL root/type consistency are validated.
- Generated capability and operation directories are checked for drift.

Expand Down
3 changes: 2 additions & 1 deletion scripts/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def build_request(operation, parameters, body=None, extra_headers=()):
command.extend(["--paginate", "--slurp"])
if body is not None:
content_types = operation.get("body_content_types", [])
if content_types and "application/json" not in content_types:
has_content_type = any(header.lower().startswith("content-type:") for header in headers[1::2])
if content_types and "application/json" not in content_types and not has_content_type:
command.extend(["-H", f"Content-Type: {content_types[0]}"])
command.extend(["--input", "-"])
return command
Expand Down
7 changes: 7 additions & 0 deletions tests/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ def test_binary_upload_uses_upload_host_and_content_type(self):
self.assertTrue(argv[4].startswith("https://uploads.github.com/"))
self.assertIn("Content-Type: application/octet-stream", argv)

def test_explicit_upload_content_type_is_preserved(self):
argv = module.build_request(self.catalog["repos/upload-release-asset"],
{"owner": "o", "repo": "r", "release_id": 1, "name": "a.zip"}, b"zip",
extra_headers=["Content-Type: application/zip"])
self.assertIn("Content-Type: application/zip", argv)
self.assertNotIn("Content-Type: application/octet-stream", argv)

def test_retired_operation_never_reaches_network(self):
with mock.patch("sys.argv", ["operations.py", "call", "dependency-graph/export-sbom"]), mock.patch.object(module.subprocess, "run") as run:
with contextlib.redirect_stderr(io.StringIO()):
Expand Down
6 changes: 4 additions & 2 deletions wiki/Verification.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Verification record

## Version 0.2.0
## Version 0.2.1

Verification date is 2026-11-15 on GitHub.com, repository thinkhome-org/full-github and organization Project 5.

Expand All @@ -13,9 +13,11 @@ Verification date is 2026-11-15 on GitHub.com, repository thinkhome-org/full-git
- Eighteen confirmed retired REST operations carry closure/replacement metadata and are blocked by the executor.
- Current Projects view CRUD and status-update CRUD were confirmed in the live schema. Earlier blanket UI-only guidance has been corrected.

Version 0.2.1 additionally preserves an explicit upload Content-Type header when a caller selects an asset MIME type.

## Automated checks

- 24 unit tests cover parameter boundaries, path/query encoding, body handling, binary upload host/media type, dry-run, remote exit status, retirement blocking, schema coverage, documented array filters, real-gh binary download byte preservation, pagination, empty responses, failures, classic branch protection and inaccessible Projects.
- 25 unit tests cover parameter boundaries, path/query encoding, body handling, binary upload host/media type, dry-run, remote exit status, retirement blocking, schema coverage, documented array filters, real-gh binary download byte preservation, pagination, empty responses, failures, classic branch protection and inaccessible Projects.
- Manifest, capability schema, unique IDs, retired metadata and GraphQL root/type consistency are validated.
- Generated capability and operation directories are checked for drift.

Expand Down
Loading