Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# Accessibility-alt-text-bot

An action to remind users to add alt text to their issue descriptions and comments.
This action supports accessible content sharing on GitHub by leaving an automated reminder whenever an image is shared on a GitHub Issue or Pull request without meaningful alternative text (alt text).
Alternative text helps convey the context of the image to those who use assistive technologies such as a screen reader and removes accessibility barriers.

For guidance on setting alternative text, see [Alternative text for images on Primer](https://primer.style/design/guides/accessibility/alternative-text-for-images).

Images on GitHub default to using the filename as alt text. This action flags when the alt text has not been updated from the default:

<img width="758" alt="Screenshot of an automated actions comment on a GitHub issue that says, 'Uh oh! @monalisa, the image you shared is missing helpful alt text...' and contains instructions for setting alt text" src="https://github.com/github/accessibility-alt-text-bot/assets/16447748/c61cc9c6-f8c8-4bfb-becb-a155c2c9711d">

**Note**: Ordinarily, setting `alt=""` will mark images as decorative. However, GitHub currently renders all images as a link. To avoid rendering links with no names, we recommend always setting alt text on images in GitHub.

## How to add this action to your repo

Copy this workflow into any repo you want the accessibility-alt-text-bot to run in.

```
```yml
name: Accessibility-alt-text-bot
on:
issues:
Expand All @@ -26,22 +35,21 @@ jobs:
uses: github/accessibility-alt-text-bot
```

## Action stability
### Action stability

To ensure you stay on a stable version of this action consider locking the action to a specific version.

```
```yml
uses: github/accessibility-alt-text-bot@v1.0.0
```
```

Replace the ref value with any commit hash.

## License
## License

This project is licensed under the terms of the MIT open source license. Please refer to [MIT](./LICENSE.txt) for the full terms.


## Maintainers
## Maintainers

See [CODEOWNERS](.github/CODEOWNERS).

Expand Down