Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sinedied/a11y-ai-action
Experimental GitHub Action to automatically detect accessibility issues in web pages using OpenAI and provide suggestions for fixing them
https://github.com/sinedied/a11y-ai-action
accessibility actions github openai reporting
Last synced: 20 days ago
JSON representation
Experimental GitHub Action to automatically detect accessibility issues in web pages using OpenAI and provide suggestions for fixing them
- Host: GitHub
- URL: https://github.com/sinedied/a11y-ai-action
- Owner: sinedied
- License: mit
- Created: 2023-02-24T10:29:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-24T13:57:05.000Z (almost 2 years ago)
- Last Synced: 2024-12-15T14:43:56.479Z (23 days ago)
- Topics: accessibility, actions, github, openai, reporting
- Language: JavaScript
- Homepage:
- Size: 199 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :robot: a11y-ai-action
[![Build Status](https://github.com/sinedied/a11y-ai-action/workflows/build/badge.svg)](https://github.com/sinedied/a11y-ai-action/actions)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)> Experimental GitHub Action to automatically detect accessibility issues in web pages using OpenAI and provide suggestions for fixing them.
## Usage
See [action.yml](action.yml).
Example workflow:
```yaml
permissions:
pull-requests: writesteps:
- uses: actions/checkout@v3- name: Generate a11y report
uses: sinedied/a11y-ai-action@v1
with:
# One or more glob patterns of files to include
files: '**/*.html'# Add a comment with the report if it's a pull request
- uses: actions-ecosystem/action-create-comment@v1
if: ${{ github.event_name == 'pull_request' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
${{ steps.a11y_ai.outputs.report_md }}# Upload the report as an artifact
- uses: actions/upload-artifact@v3
with:
name: A11y Report
path: ${{ steps.a11y_ai.outputs.report_path }}
```You can a full example setup in [this repository](https://github.com/sinedied/a11y-ai/blob/main/.github/workflows/action.yml).
## Notes
This tool is based on [a11y-ai](https://github.com/sinedied/a11y-ai).