Skip to content

Commit 0bf45a8

Browse files
djuloori27claude
andcommitted
docs(build): update README to reference BuildMetadata type
Update documentation to use entity.BuildMetadata instead of map[string]string. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4998f0b commit 0bf45a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extension/build/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type BuildManager interface {
2222
) (string, error)
2323

2424
// Poll retrieves the current status of a build from the CI provider
25-
Poll(ctx context.Context, buildID string) (entity.BuildStatus, map[string]string, error)
25+
Poll(ctx context.Context, buildID string) (entity.BuildStatus, entity.BuildMetadata, error)
2626

2727
// CancelBuild requests cancellation of a build (asynchronous operation)
2828
CancelBuild(ctx context.Context, buildID string) error
@@ -107,7 +107,7 @@ func (s BuildStatus) IsTerminal() bool
107107

108108
### Build Metadata
109109

110-
The `Poll` method returns a `map[string]string` containing additional metadata about the build. The specific keys and values are implementation-defined, but common examples include:
110+
The `Poll` method returns `entity.BuildMetadata` containing additional metadata about the build. The specific keys and values are implementation-defined, but common examples include:
111111

112112
**Common metadata keys:**
113113
- `build_url` - Direct link to the build in the CI provider's UI

0 commit comments

Comments
 (0)