diff --git a/.github/prompts/classify-pr.prompt.yml b/.github/prompts/classify-pr.prompt.yml deleted file mode 100644 index 45b0b981..00000000 --- a/.github/prompts/classify-pr.prompt.yml +++ /dev/null @@ -1,40 +0,0 @@ -messages: - - role: system - content: | - You classify pull requests for release note categorization. - Respond with JSON: {"label": "bug"}, {"label": "enhancement"}, or {"label": "documentation"}. - - - bug: corrects wrong behavior, broken defaults, incorrect error codes, - retry/backoff defects, auth handling bugs, compatibility regressions. - Test-only changes that fix assertions for previously-wrong behavior - count as bug. - - enhancement: new API coverage, new features, new configuration - options, new test coverage, tooling improvements. - If only generated files changed with no bug claim, default to - enhancement. - - documentation: README, CONTRIBUTING, SECURITY, or other docs-only - changes with no runtime behavior change. - - When a PR mixes categories: bug > enhancement > documentation. - Prefer diff evidence over the PR title. -model: openai/gpt-4o-mini -responseFormat: json_schema -jsonSchema: |- - { - "name": "classification", - "strict": true, - "schema": { - "type": "object", - "properties": { - "label": { - "type": "string", - "enum": ["bug", "enhancement", "documentation"] - } - }, - "required": ["label"], - "additionalProperties": false - } - } -modelParameters: - maxCompletionTokens: 25 - temperature: 0 diff --git a/.github/prompts/detect-breaking.prompt.yml b/.github/prompts/detect-breaking.prompt.yml deleted file mode 100644 index a6d59571..00000000 --- a/.github/prompts/detect-breaking.prompt.yml +++ /dev/null @@ -1,34 +0,0 @@ -messages: - - role: system - content: | - You analyze CLI tool diffs for breaking changes. A breaking change is: - - Removal or rename of a CLI command or subcommand - - Removal or rename of a flag (--flag) - - Change in output format that would break scripts parsing the output - - Change in exit codes - - Removal of environment variable support - - NOT breaking: adding new commands, adding new flags, internal refactors, - test changes, documentation, adding new output fields. - - Respond with a JSON object: - {"breaking": true/false, "items": ["description of each breaking change"]} -model: openai/gpt-4o-mini -responseFormat: json_schema -jsonSchema: |- - { - "name": "breaking_analysis", - "strict": true, - "schema": { - "type": "object", - "properties": { - "breaking": { "type": "boolean" }, - "items": { "type": "array", "items": { "type": "string" } } - }, - "required": ["breaking", "items"], - "additionalProperties": false - } - } -modelParameters: - maxCompletionTokens: 500 - temperature: 0 diff --git a/.github/workflows/ai-labeler.yml b/.github/workflows/ai-labeler.yml deleted file mode 100644 index 16e24d03..00000000 --- a/.github/workflows/ai-labeler.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Classify PR - -on: - pull_request_target: # zizmor: ignore[dangerous-triggers] -- required for write access to PRs from forks; workflow only calls reusable workflows, no PR code is checked out or executed - types: [opened, synchronize, reopened] - -concurrency: - group: classify-pr-${{ github.event.pull_request.number }} - cancel-in-progress: true - -permissions: {} - -jobs: - classify: - uses: basecamp/.github/.github/workflows/ai-classify-pr.yml@0f236fea0ac36da812ff7178af3af1b4ee686c3c - with: - prompt-file: .github/prompts/classify-pr.prompt.yml - labels: "bug,enhancement,documentation" - permissions: - contents: read - issues: write - models: read - pull-requests: write - - breaking: - uses: basecamp/.github/.github/workflows/ai-breaking-change.yml@0f236fea0ac36da812ff7178af3af1b4ee686c3c - with: - prompt-file: .github/prompts/detect-breaking.prompt.yml - file-patterns: | - internal/commands/*.go - cmd/fizzy/main.go - permissions: - contents: read - issues: write - models: read - pull-requests: write