1
0
Fork 0
mirror of https://github.com/imjasonh/apidiff-action synced 2026-07-06 22:52:43 +00:00

Transform to apidiff-action GitHub Action

- Remove all Go code and replace with Node.js GitHub Action
- Use official golang.org/x/exp/cmd/apidiff tool
- Add PR comment functionality
- Support both git refs and directory comparisons
- Add comprehensive test suite with testdata examples
- Update CI to test action with breaking/safe/clean examples

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2025-07-29 16:33:49 -04:00
parent 37ea620324
commit b92e3a611c
Failed to extract signature
46 changed files with 6626 additions and 1959 deletions

36
action.yml Normal file
View file

@ -0,0 +1,36 @@
name: 'Go API Compatibility Check'
description: 'Detect breaking API changes in Go code and comment on PRs'
author: 'Jason Hall'
branding:
icon: 'shield'
color: 'blue'
inputs:
working-directory:
description: 'Directory to run apidiff in'
required: false
default: '.'
fail-on-breaking:
description: 'Whether to fail the action if breaking changes are detected'
required: false
default: 'true'
comment-on-pr:
description: 'Whether to comment on the PR with results'
required: false
default: 'true'
token:
description: 'GitHub token for commenting on PRs'
required: false
default: ${{ github.token }}
outputs:
has-breaking-changes:
description: 'Whether breaking changes were detected'
breaking-count:
description: 'Number of breaking changes found'
compatible-count:
description: 'Number of compatible changes found'
runs:
using: 'node20'
main: 'dist/index.js'