Skip to content

Commit

Permalink
Merge pull request #13 from github/kh-update-readme
Browse files Browse the repository at this point in the history
Update README to provide more details on how this action works.
  • Loading branch information
khiga8 committed May 19, 2023
2 parents 0f459be + b9c3f44 commit 81a448e
Showing 1 changed file with 16 additions and 8 deletions.
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

0 comments on commit 81a448e

Please sign in to comment.