Skip to content

spec: add githubapi README + spec_test, fix workflow method signatures#47800

Merged
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-audit-fix-again
Jul 24, 2026
Merged

spec: add githubapi README + spec_test, fix workflow method signatures#47800
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-audit-fix-again

Conversation

Copilot AI commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Spec audit found pkg/githubapi had no README or spec tests, and pkg/workflow/README.md incorrectly listed CompileWorkflow/CompileWorkflowData as standalone functions rather than (*Compiler) methods.

Changes

  • pkg/githubapi/README.md — new specification covering ClientOptions: behavioral contract, parameters, usage example, and dependency list

  • pkg/githubapi/spec_test.go — spec tests validating the three documented contracts (Host, AuthToken, Timeout) plus GHES host handling

  • pkg/workflow/README.md — corrected method signatures in the Compiler Methods table:

    - | `CompileWorkflow`     | `func(markdownPath string) error`                              |
    - | `CompileWorkflowData` | `func(workflowData *WorkflowData, markdownPath string) error`  |
    + | `CompileWorkflow`     | `func(*Compiler) CompileWorkflow(markdownPath string) error`                              |
    + | `CompileWorkflowData` | `func(*Compiler) CompileWorkflowData(workflowData *WorkflowData, markdownPath string) error`  |

- Add pkg/githubapi/README.md with specification for ClientOptions
- Add pkg/githubapi/spec_test.go with behavioral contract tests
- Fix pkg/workflow/README.md: update CompileWorkflow and CompileWorkflowData
  to show (*Compiler) receiver instead of bare func signatures

Closes #47799

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix specification issues identified in audit report spec: add githubapi README + spec_test, fix workflow method signatures Jul 24, 2026
Copilot AI requested a review from pelikhan July 24, 2026 14:00
@pelikhan
pelikhan marked this pull request as ready for review July 24, 2026 15:12
Copilot AI review requested due to automatic review settings July 24, 2026 15:12
@pelikhan
pelikhan merged commit f31e50f into main Jul 24, 2026
@pelikhan
pelikhan deleted the copilot/spec-librarian-audit-fix-again branch July 24, 2026 15:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds specification coverage for pkg/githubapi and corrects workflow compiler API documentation.

Changes:

  • Documents githubapi.ClientOptions.
  • Adds specification tests for its host, token, timeout, and GHES behavior.
  • Corrects Compiler method signatures.
Show a summary per file
File Description
pkg/githubapi/README.md Defines the package’s public contract and usage.
pkg/githubapi/spec_test.go Verifies the documented contract.
pkg/workflow/README.md Identifies compiler APIs as methods.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Medium

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[spec-librarian] Specification Audit — 2026-07-24 — 2 issues found

3 participants